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
Siege of Madrid as part of the Nationalist's campaign to take the capital: in March, at Guadalajara and at the end of December at Teruel, both north east of Madrid. In the first of these battles, in early 1937 Franco tried to cross the river Jarama to cut off the road between Madrid and Valencia, where the Republicans had moved their government. The battle's results were inconclusive. Franco's troops managed to get onto the east bank of the Jarama but failed to sever communications between Madrid and Valencia. Casualties on both sides were heavy, estimates of their losses ranging from 6,000 to 20,000