 In 1814, "Spartan" returned to Portsmouth, where command passed to Phipps Hornby, who briefly served with her in the Mediterranean.While commander of "Spartan", Hornby participated in the capture of Elba from the French, for which he was invested with the Austrian order of St Joseph of Würzburg.With the end of the war in 1815, "Spartan" remained in the Mediterranean under Captain William Furlong Wise, who in 1818 was able to negotiate compensation of $35,000 from the current Dey of Algiers following the depredations of Algerian pirates under the previous Dey, who had died of the plague.