Formerly, in the time of al-Idrisi, it was known as Shantyala. Its cathedral (previously a mosque) is now known as the cathedral of the Cordoba countryside and has been declared an Asset of Cultural Interest. It is one of the main attractions of the town, along with its walls and castle.