Close to the Moorish castle is the church Nossa Senhora do Castelo. It stands on the spot where king Sancho I built a Romanesque chapel in the early 13th century, leading to the creation in 1388 of the parish of Nossa Senhora do Castelo de Sesimbra. The present church was built in 1721. When a new church was built in the village, this church passed into disuse and fell into ruins. It was restored between 1965 and 2001. The walls of the church are inlaid with azulejos. The 17th century-pulpit was made from local pink marble. The gilded triumphal arch of the 18th century-choir is decorated with Manueline motives. On the left side of the choir stands in a niche the gilded and polychromed statue of the Madonna of the Castle on a giant shell.