The El Real Alcázar was originally built under the orders of Abd ar-Rahman II in 913 CE as a military fortress on the site of a Visigothic basilica, and later used as a governor’s residence under the Cordoban caliph Abd-ar-Rahman II . The Real Alcázar (then known as Dar al-Imarah) is the oldest palace in Europe still used as a royal residence.