The Rock of Gibraltar, linked to mainland Spain by a low isthmus, extends south into the Strait of Gibraltar which connects the Mediterranean Sea with the Atlantic Ocean. It is a strategic location that has been occupied in turn by the Moors, Spanish and British. The Rock is inaccessible on its eastern side, which rises in a tall and steep cliff. The town lies on the west side along the shore of the Bay of Gibraltar.