History of Madrid "Madrid" evolved from the Mozarabic "Matrit", which is still in the Madrilenian gentilic. The site of modern-day Madrid has been controlled since prehistoric times, and archaeological research found a small Visigothic village nearby. In the mid-9th century, Muhammad I of Córdoba constructed a small castle where the Palacio Real stands today. The Moors built a citadel, al-Mudayna, around this castle. They named the area after the nearby Manzanares River, which the Muslims called al-Majrīṭ (Arabic: "source of water"). From this came the name "Majerit", later spelled "Madrid". The Moors controlled the citadel until Alfonso VI of León and Castile conquered
Guadarrama (river) (), which is one of the three regional parks within the Community of Madrid. The basin area is about Its main tributary is the Aulencia River, which flows entirely within the Community of Madrid and supplies water to the reservoir of Valmayor. Guadarrama (river) The Guadarrama is a river in Spain. A tributary of the Tagus, the longest river on the Iberian Peninsula, Guadarrama has its source in the Siete Peak, part of the Sierra de Guadarrama, in the Community of Madrid, in the central part of the country, at an altitude of . The Guadarrama flows from north to