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
Community of Madrid fluvial river basins. Province of Madrid occupies a surface area of approximately 8,028 km (1.6% of all Spanish territory). More specifically, the exact position of Madrid is 3° 40´ of longitude west of Greenwich, England, and 40° 23´ north of the equator. Practically all of the Province is located between 600 and 1,000 m above sea level, with the highest point being Peñalara at 2,430 m and the lowest Alberche river in Villa del Prado at 430 m. Other considerable heights, as well as being famous, are the Ball of the World mountain (la Bola del Mundo) in Navacerrada, at