Sancho I of Portugal
During the second half of the 12th century, the chapel constructed within the walls of the castle became the parish seat. This was followed by the remodelling and construction under the initiative of King Sancho I of Portugal.