the coast of Guadeloupe in November 1809 and Wallis transferred to the fifth-rate in December 1809. He subsequently served in the sloops HMS Observateur, and . Wallis transferred to the 38-gun frigate in January 1812. HMS Shannon captured USS Chesapeake near Boston on 1 June 1813, during the War of 1812: HMS Shannons Captain, Philip Broke, was badly wounded during the action and her first lieutenant was killed. Wallis served as the temporary captain of the British frigate for a period of exactly six days as she made her way back to Halifax, Nova Scotia, with Chesapeake flying the Blue Ensign above the Stars and Stripes, for which action he was promoted to commander on 9 July 1813. Wallis was given command of the sloop at Sheerness in January 1814. Promoted to captain on 12 August 1819, he became commanding officer of the sixth-rate at Halifax in June 1824 and commanding officer of the fifth-rate on the North America and West Indies Station in April 1838. He earned the thanks of the people of Veracruz in Mexico when he protected them from French bombardment in Winter 1838 during the Pastry War. Appointed as commodore (but remaining a post captain in substantive rank) he went on to be Senior Naval Officer, Gibraltar, with his broad pennant of the third-rate , in October 1843. Senior command Promoted to rear-admiral on 27 August 1851, Wallis became Commander-in-Chief, South East Coast of America Station, with his flag in the third-rate , in May 1857 but only held the command until September 1857. He was promoted to vice-admiral on 10 September 1857, appointed a Knight Commander of the Order of the Bath on 18 May 1860 and promoted to admiral on 2 March 1863. He was appointed Rear-Admiral of the United Kingdom on 17 July 1869 and Vice-Admiral of the United Kingdom on 12 February 1870. In order to prevent admirals from dying as paupers, a special clause in the retirement scheme of 1870 provided that those officers who had commanded a ship before the end of the Napoleonic Wars should be retained on the active list: the six days Wallis was in command of HMS Shannon qualified him to remain on the active list until he died. He was advanced to Knight Grand Cross of the Order of the Bath on 24 May 1873 and promoted to Admiral of the Fleet on 11 December