In 1804 following the Peace of Amiens, Hornby joined Horatio Nelson's flagship in the Mediterranean briefly before being posted to with the admiral's recommendation.
In 1809, Minorca operated briefly with the squadron in the Adriatic Sea and the following year Hornby was promoted to post captain, becoming temporary commander of before moving to the small sixth rate to serve in the Adriatic squadron under William Hoste.