What was the importance of Gibraltar to Britain?

The capture of Gibraltar and control of Gibraltar strait by British in 1704 prevented French fleets between Mediterranean and Atlantic to combine forces.