The Alcazar was a strong fortress built to protect the Muslim authorities and the residence of the royals.