The sanctuary was born as a chapel that housed a wooden statue of the Madonna, considered miraculous. A 13th century lime wood statue, depicting the Madonna with her heart pierced by 7 very sharp swords, owned by the Piantello family, granted great graces to those who turned to it.
With the alms received in 1563, a primitive chapel was built, with inside the simulacrum of M.V. Addolorata and frescoes of the Gaudenzian school: the ascent to Calvary and the Crucifixion. It was visited in 1584 by an illustrious pilgrim, San Carlo Borromeo, guest of the noble Piantello family, whose 16th century house is adjacent to the Sanctuary. The pilgrimage of Carlo Borromeo is represented in the frescoes of the vault of the sanctuary.
In 1709 the current church with the portico was built, integrating the small chapel.
The church was blessed in 1719.
Inside there are notable stuccos and statues of angels made by Giovanni Antonio Marca of Campertogno in 1714 and the frescoes of the dome and walls by Valentino Rossetti of Orta, with the fresco depicting St. Charles on his knees, dated 1720.
On 14 August 1903 the consecration of the Church by the Bishop of Vercelli took place.