The castle, located on the left bank of the road to Granada, was rebuilt by the Arabs on the site of a Phoenician fortress by the river of the same name.
The Arabs built its current double ring of walls and it was conquered by the Catholic Monarchs in 1485. After the war of the Alpujarras, it became a prison-bishopric, which marked the beginning of its decline, culminating at the end of the 16th century. Today it is in ruins.
This castle is one of the oldest remains of fortifications, with elements suggesting that it may have been built by the Phoenicians and occupied by various civilisations. It was used by the Arabs and later by the Christians as a prison-bishopric. Some historians, such as Diego Vázquez Otero, speculate that it may be the ancient Odyscia, mentioned in the stories of Ulysses.
