In May 1759 Edward Boscawen took command of the British fleet in the Mediterranean. As well as 15 ships of the line he also had 12 frigatessmaller and faster than ships of the line and primarily intended for raiding, reconnaissance and messaging. He was tasked with harassing the French, protecting British merchant shipping, and ensuring the safety of the British outpost and naval base at Gibraltar. By late July the ships of the British fleet were low on supplies and in urgent need of maintenance after their prolonged period at sea, during which some ships had been damaged by enemy action. The fleet retired to Gibraltar, arriving on 4August. There they began the difficult process of scraping the bottoms of the ships free of barnacles and seaweed, repairing and replacing their rigging and replacing spars. While this refurbishment was under way, fresh orders arrived, alerting Boscawen to the likelihood that the French Mediterranean Fleet would attempt to join up with their Atlantic Fleet, probably at Brest, and instructing him to prevent it. He ordered the first two of his frigates to be ready for sea to patrol to the east, where the Mediterranean narrowed to the bottleneck of the Strait of Gibraltar, to give warning if the French were to attempt to break out.