Madinat al-Zahra or Medina Azahara was a fortified palace-city on the western outskirts of Córdoba in present-day Spain. Its remains are a major archaeological site today. The city was built in the 10th century by Abd ar-Rahman III, a member of the Umayyad dynasty and the first caliph of Al-Andalus.