Located close to the sea, it was often the site of raids by Barbary pirates, especially from the 16th century onward, that is, when country festivals had particular development, so much so that in 1621 the viceroy issued an ordinance forbidding pilgrimages to take place at night. In 1793, when the French landed at Margine Rosso with the intention of conquering Cagliari, they occupied the little church, which was the scene of a violent clash with Sardinian militiamen. The older structure is designed according to patterns proper to the Sardinian-Catalan Gothic style. Consisting of the perimeter walls and the buttresses of the side elevations made of freshly hewn and mortar-bound stones, it can be ascribed to the 15th century, but underwent additions and remodeling in the 17th century.