The town used to be a Moorish fortress, occupying a strong position in the mountainous region of Las Cabrillas (1000 metres). It is dominated by the ancient citadel of the Moors, and still has traces of the original town walls. There are three ancient parish churches; San Nicolás, the oldest, dates from the 13th century, but was partly restored in 1727.