Construction of the cathedral began in 1249. It was built on the ruins of an early Spanish mosque. It was damaged and rebuilt on numerous occasions during the following two centuries. In the sixteenth century Andrés de Vandelvira built the biggest part of the Cathedral. It was consecrated in 1724.