The history of Gibraltar, a small peninsula on the southern Iberian coast near the entrance of the Mediterranean Sea, spans over 2,900 years. The peninsula was a place of reverence in ancient times, and it later became "one of the most densely fortified and fought-over places in Europe", as one historian has put it. Gibraltar's location has given it an outsized role in the history of Europe. Its fortified town, established in the Middle Ages, has hosted garrisons that have fought in numerous sieges and battles over the centuries. The Rock of Gibraltar is a limestone monolith and fortress in Gibraltar that has held historical and military significance and has become a tourist attraction.
Gibraltar was first inhabited over 50,000 years ago by Neanderthals.