Gibraltar commanded the entrance to the Mediterranean and had been a British fortress since the early 18th century.
The Kriegsmarine began operations in the Mediterranean with establishment of the 23rd U-boat Flotilla at a base on Salamis Island in Greece in September 1941.