Formed on 1 June 1940 at RAF Pembroke Dock, after flying from the Netherlands in eight Fokker T.VIIIW twin-engined patrol seaplanes, as part of Coastal Command.
The squadron flew coastal and anti-submarine patrols in the Fokkers until they became unserviceable due to lack of spares and were re-equipped with Ansons in August 1940 and supplemented in October with Hudsons.
The squadron moved to RAF Leuchars on 1 October 1941, re-equipped with Hudson IIIs, flying patrols and anti-shipping attacks in the North Sea.
In September the squadron started bombing targets in Germany along the Rhine for the advancing allied troops.
On 30 April 1945 the squadron moved to Advanced Landing Ground B.110 at Achmer, Lower Saxony in Germany.