 The Castle itself played a prominent part in the Muslim invasion of the Iberian Peninsula, with Muslim forces overrunning a large portion of it in two years - an invasion which led to Islamic domination of parts of western Europe for more than seven centuries.It is therefore of historic significance not only for Gibraltar and Iberia, but also for all of western Europe.The present Tower of Homage, and most of what is visible today of the Castle, was rebuilt during the second Moorish period of occupation in the early 14th century, after its near destruction during a reconquest of Gibraltar by the Moors following a re-occupation by Spanish forces from 1309 to 1333.