7 The building was the central nucleus of the Islamic citadel of Mayrit, a walled district approximately 4 hectares in size, incorporating not only the castle, but also a mosque and the home of the governor (or emir).