A bastioned star fort built in the 17th century (1641–1658) during the Portuguese Restoration War on a hill south of Castro Marim to defend the border, as the medieval castle could no longer withstand modern artillery.