عبد الرحمن الداخل
Archaeological finds confirm the presence of settlers in the area from the Lower Paleolithic. The oldest permanent settlement correspond to Escua, founded by the Phoenicians, and Ulisis, inhabited by Turduli and Romans. During the Muslim period, "Medina Arxiduna" achieved notoriety by becoming the capital of Rayya Cora. In his alcazaba he was proclaimed Emir Abd al-Rahman I in 756, leading to the establishment of the Emirate of Cordoba in al-Andalus. After the Christian conquest in 1462, the town remained under the seigniorial jurisdiction of the House of Osuna.