On 24 December 1812 he received a commission as an ensign in the 1st Battalion 1st Regiment of Foot Guards, and after mounting guard at St. James's Palace for a few months was sent with a detachment of his regiment to Spain. In 1813 he took part in the principal military operations in that country, and in the following year returned with his battalion to London. Here he became one of the dandies of the town, and was among the very few officers who were admitted at Almack's, where he remembered the first introduction of quadrilles and waltzes in place of the old reels and country dances. Wanting money to equip himself for his further services abroad, he obtained an advance of £200 from his agents, Cox &amp; Greenwood, and going with this money to a gambling-house in St. James's Square, he won £600, with which he purchased horses and other necessaries. Sir Thomas Picton then took him out to Flanders as an honorary "aide-de-camp" but finding no employment for him, he was advised to join the 3rd battalion of his regiment and was subsequently present at Quatre Bras and Waterloo. He entered Paris on 25 June 1815, and on 28 June became a lieutenant and later a captain in his regiment. From this period until 24 October 1821 he continued with his regiment in England, and then retired from the army. On 18 June 1823 he became insolvent, and after some confinement was discharged from Debtors' Prison under the Insolvent Debtors Act.