The church was established in 1688 at the initiative of the nobleman Domenico Viola, who commissioned a new building to replace earlier structures on the site. The initial design is attributed to the architect Pietro Castro, who defined the Latin-cross plan and internal spatial layout. Construction progressed with the support of local confraternities, including those responsible for organising the Misteri procession. Substantial alterations took place in the early 18th century. Between 1712 and 1714 the architect
Giovanni Biagio Amico, a leading figure of the Sicilian Baroque, redesigned the main façade and directed further works that gave the church much of its present form. Amico maintained a long association with the building and was later buried inside it. By the late 18th century the church had become the permanent repository of the twenty sculptural groups of the Misteri di Trapani, which continue to play a central role in the city’s devotional life. The building has undergone several conservation campaigns, and the sculptures have occasionally been moved during restoration works, including a temporary transfer to the
Church and College of the Jesuits in 2025 to permit structural interventions at Purgatorio. ==Architecture==