It was destroyed by the earthquake of 1755, and rebuilt in 1769 by order of the commander of the Lagos Infantry Regiment, Hugo Beaty, who was also administrator of the Confraternity of Saint Anthony.
Inside the church, the tiles, the paintings of the vault and the gilded carving were also installed during the eighteenth century.
According to popular tradition, the church had a rich collection of silver and sacred art, which were looted during the French occupation in the early nineteenth century.
In 1823 the clock tower was built, whose stonework was used from the ruins of the Church of Santa Maria.In 1932 the municipal museum was installed in the old South Sacristy.
This article about a church building or other Christian place of worship in Portugal is a stub.