The village of Castro Marim was built, initially, within the walls of the Castle, situated on the top of a mountain, and was the headquarters of the First Church of Santiago.