Gibralfaro has been the site of fortifications since the Phoenician foundation of Málaga city, circa 770 BC.[citation needed] The location was fortified by Caliph Abd-al-Rahman III in 929 CE. At the beginning of the 14th century, Yusuf I of the Kingdom of Granada expanded the fortifications within the Phoenician lighthouse enclosure and erected a double wall to the Alcazaba.