On 5 January 1667 Gerard had been appointed to the general command of the Hampshire and Isle of Wight militia, with special instructions to provide for the security of the Isle of Wight and Portsmouth in view of the threatening attitude of the Dutch.