He entered the British Army in 1800, and served with distinction under Sir John Moore and the Duke of Wellington in the Peninsula—losing his right arm at the 1812 storming of Ciudad Rodrigo, where, as a major in the 52nd Foot, he led the Light Division's storming party.