[citation needed] In 1807 Ramillies was in the West Indies as part of a squadron under the command of Rear-Admiral Alexander Cochrane, who sailed in HMS Belleisle.
In August 1812, Sir Thomas Masterman Hardy took command of Ramillies and was sent to North America at the outbreak of the War of 1812.
Hardy led the fleet in Ramillies that escorted and transported the army commanded by John Coape Sherbrooke which captured significant portions of eastern coastal Maine (then part of Massachusetts), including Fort Sullivan, Eastport, Machias, Bangor, and Castine.
[3] On 4 December 1813 Ramilies and Loire recaptured the whaler Policy, J.Bowman, master, which the United States Navy had captured in the South Pacific.
At the end of January 1815, the prisoners of war from the Battle of Lake Borgne were transported to the Caribbean in HMS Ramillies.
In November, Captain Thomas Boys replaced Ogle, while Rear-Admiral Sir William Hope raised his flag in her at Leith.
[Note 2] In August 1821, Ramillies came under the command of Captain Edward Brace and served in the Downs on the Coastal Blockade.