Castellar de la Frontera is a village within a castle surrounded by the walls of a well preserved Moorish-Christian fortress. It is located within the Parque Natural de Los Alcornocales next to a reservoir formed by the Guadarranque River. The village was abandoned in the 1970s and its inhabitants moved to the aptly named Nuevo Castellar (Spanish: New Castellar). The derelict state of the village attracted a number of Germans who took over the empty houses and built temporary dwellings outside the walls. The village was later repopulated reporting a population in 2012 of 3,202. On clear days you can see the North African coast, Gibraltar and the villages on the mountains near Málaga to the north. Castellar is in an isolated location, at the end of a mountain road that runs off the A-368. It is 16 kilometres (9.9 mi) from Castellar to the inter-city N-340 road and 25 kilometres (16 mi) to Gibraltar or Algeciras.