The church was finished in 1116 over the ruins of a pre-existing monastery, and consecrated on October 5 of the same year. Its construction was ordered by the giudice (judge) of TorresConstantine I. It was entrusted to Camaldolese monks who here founded an abbey. It was later enlarged in Pisane style, including the addition of the tall bell tower. The portico on the façade is also probably a late addition, and is attributed to workers from Lucca.
The church was abandoned in the 16th century, until it was restored and reopened in the early 20th century.[when?]