Originally this church was built over the Hauynacapac palace. In 1650 due to a strong earthquake the building was damaged and in 1688 it was rebuilt. The facade and central nave are excellent examples of the baroque in the Andes.