Gibraltar has always been important as a military base because this is where the Mediterranean Sea narrows to only 14 kilometres (9 miles) at the Strait of Gibraltar. This meant that whichever country controlled Gibraltar could see all ships that came into the Mediterranean Sea.