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
Sport in Madrid which allowed him to be the second city with the highest rating, slightly behind Tokyo. Finally, on October 2, 2009 the city of Rio de Janeiro won the election, despite having initially a general technical assessment below that of the other three cities. Madrid resubmitted an application to host the games in 2020. The IOC selected Madrid as candidate city on May 23, 2012. On September 7, 2013 the candidate cities were Madrid, Istanbul and Tokyo. On the first ballot Madrid and Istanbul yielded the same votes after Tokyo. In the runoff vote, Madrid was eliminated and in the final