From 1805 to 1814 he served on the Mediterranean Station and was present at the capture of Capri and the Siege of Gaeta in 1806. He was then involved in the disastrous Walcheren Campaign of 1809 and the Siege of Cádiz in 1810, taking part in the defence of the nearby Fort Matagorda.