Castro Marim, officially known as the Town of Castro Marim, is a town and municipality located in the southern region of the Algarve in Portugal. It serves as a local administrative center within this coastal province.
As of the 2011 census, the municipality had a population of 6,747 residents. The geographic area of the municipality covers approximately 300.84 square kilometers.