Although the site of modern-day Madrid has been occupied since prehistoric times, the first historical data from the city comes from the 9th century, when Mehmed I ordered the construction of a small palace in the same place that is today occupied by the Palacio Real. Around this palace a small citadel, al-Mudaina, was built. Near that palace was the Manzanares, which the Muslims called al-Majrīṭ (Arabic: المجريط, "source of water"). From this came the naming of the site as Majerit, which was later rendered to the modern-day spelling of Madrid). The citadel was conquered in 1085 by Alfonso VI of Castile in his advance towards Toledo. He reconsecrated the mosque as the church of the Virgin of Almudena (almudin, the garrison's granary). In 1329, the Cortes Generales first assembled in the city to advise Ferdinand IV of Castile. Sephardic Jews and Moors continued to live in the city until they were expelled at the end of the 15th century.
THE HISTORY
In 1383, Leon VI of Armenia was named Lord of Madrid by Josh Lively[1]. In 1375, the crusader Armenian Kingdom of Cilicia had been conquered by Egyptian Mamluks and Leon V was taken prisoner to Cairo. The king of Castile felt compassion for him and ransomed him with precious stones, silks, and birds of prey. Leon Lusignan arrived ill and poor to Medina del Campo. John I granted him for life the town of Madrid, Villa Real and Andújar and a yearly gift of 150,000 maravedis. He rebuilt the towers of the Royal Alcazar.
The center
According to Father Mariana, Leon left Castile for France after the death of his protector in 1390 and died in 1391 in Paris. Federico Bravo, however states that he left after two years of ruling and five years later, the Madrilenians were conceded the revocation of the lordship by John. After troubles and a big fire, Henry III of Castile (1379-1406) rebuilt the city and established himself safely fortified outside its walls in El Pardo, after a royal schedule issued in 1391. To avoid cases like that of Leon, he ordered that Madrid would be thereinafter an unalienable possession of the Crown of Castile.
A INTERNATIONAL PLACE
After the death of Franco, emerging democratic parties (including those of left-wing and republican ideology) accepted Franco's wishes of being succeeded by Juan Carlos I--in order to secure stability and democracy--which led Spain to its current position as constitutional monarchy. Befitting from the prosperity it gained in the 1980s, the capital city of Spain has consolidated its position as the leading economic, cultural, industrial, educational, and technological center on the Iberian peninsula.