Gibraltar became a critical naval base and allowed Britain to control the Atlantic entry and exit point to the Mediterranean.