Umayyad conquest of Hispania
It is believed that St. Michael's Cave has had a military use since the Berber general Tariq ibn Ziyad led the Umayyad conquest of Hispania in 711 AD. This is assumed due to the defensive wall of Moorish origin which protected the cave's entrance until recently.