The church was built in the second half of the sixteenth century at the wish of Emperor Carlos V. The plans were made in 1559 by Francisco del Castillo “El Mozo”, the prestigious Italian-trained architect, who directed the works until his death, after which his brother, Benito, took over. Construction advanced slowly due to the lack of economic resources and by 1600 it was still not completed.