Castro Marim gets its name from the closeness of its castle to the sea. The castle ruins tower over the village to the north and dates from the late 13th century.