Abd ar-Rahman III ordered the construction of this city at a time when he had just finished consolidating his political power in the Iberian Peninsula and was entering into conflict with the Fatimid dynasty for the control of North Africa.
Abd ar-Rahman III. nařídil výstavbu tohoto města v době, kdy upevnil svou politickou moc na Pyrenejském poloostrově a ukončil konflikt s dynastií Fatimidů vládnoucí v severní Africe.