Dorsetshire came under the command of Edward Whitaker in 1704 and she was at the capture of Gibraltar (but out of commission). Whitaker then took the ship to play a part in the Battle of Málaga the same year.