During the Siege of Almeida and at the Battle of Fuentes de Onoro he commanded a detachment of two hundred picked sharpshooters and half a troop of horse artillery, with the special duty of preventing supplies from entering the place, and during the Siege of Ciudad Rodrigo he commanded the left wing of the rifles at the outposts and the covering party during the storm on 18 January 1812. At the siege of Badajoz he was specially thanked in general orders, with Colonel Williams of the 60th, for repulsing a sortie, and on the night of the assault he again commanded the covering party.