Between the mountain ranges are important valleys, including the headwaters of the Guadalquivir, which—after initially heading some 50 kilometers northeast through the mountains —runs west to the Atlantic Ocean, but also of the Segura, which runs east to the Mediterranean.