Its source is in the Sierra de Alhama in the Province of Granada, from which it drains the depression of Antequera, flowing for 166 kilometers through southern Andalusia into the Mediterranean west of the city of Málaga.