After the founding of Linares, on May 23, 1794, the priest of Yerbas Buenas Pablo de la Barra transferred to this city the seat of his parish, which was built between 1796 and 1810, by Tiburcio Gúmera. The church suffered damage from the 1906 Valparaíso earthquake and the 1928 Talca earthquake, which led to its demolition. A fundraising campaign was started to built a new church, a task entrusted to the first bishop of the diocese Miguel León Prado, a task that after his death was continued by Bishop Juan Subercaseaux. It would bring together the architects Carlos Bresciani and Jorge del Campo Rivera, in addition to his brother, Pedro Subercaseaux. The church is based on the design of Basilica of Sant'Ambrogio in Milan, which was the idea of Pedro Subercaseaux. It was inaugurated in 1937.