Following his release, M'Kinley returned to the West Indies where he served on HMS "Surprise", then in which he fought at the Battle of Fort Royal on 29 April 1781 and the Battle of the Capes on 5 September.