The urban layout remains practically unaltered, so it is possible to see the different development stages.
The first urban nucleus was built around the fortress as a central point. Adapting to the orography of the land, the houses were constructed and sheltered by the upper defensive wall of the castle on top, and also by a second wall, built bellow for defensive reasons in Nasrid times.
After the conquest, the main church was built and the houses expanded east of the hill, resulting in the neighborhoods of Arrabal, Erillas and Solana. Later the town extended towards the eastern zone, limiting to the south with the Arroyo de la Cruz Gorda and to the north with that of Fuente Molina.
In the eighteenth century population increased and then constructions of great importance began: the convent of San Antonio, the Royal Granary, the palace that houses the City Hall at present and the Church of La Encarnación.
In the nineteenth century the hill of Calvario was occupied and in the twentieth century the neighbourhoods of San Cristóbal, San Antonio and La Paz were built.