Although the site of Madrid has been occupied since prehistoric times, the first historical data we have from the city is from the middle of the IX Century, when Mohamed I ordered the construction of a small palace (site occupied now by the Palacio Real). Around this palace there was built a small citadel (al-Mudaina). Near that palace was the River Manzanares, which the muslims called Mayrit meaning source of water. (from which Magerit, then Madrid). The citadel was conquered in 1085 by Alfonso VI 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 first assembled in Madrid to advise Fernando IV. Jews and Moors continued to live in the city in their quarter, still called the "Moreria" until they were expelled.
Later, Madrid was taken by the followers of Enrique of Tastamara and ceded by Juan I to King Leon V of Armenia who was then dethroned by the Sultan of Babilonia. Having been destroyed by fire during the reign of Enrique II, the city was rebuilt by his grandson Enrique III, who reincorporated Madrid under the Crown of Castille and who also founded El Pardo, situated just outside the city. [ brief history ]
| Date | Architect | Building |
| 4th Century | - | Templo de Debod |
| 1629-43 | Juan Bautista Crescendi | Palacio de Santa Cruz |
| 1738-55 | Juan Bautista Sachetti | Palacio Real |
| 1769 | Francisco Sabatini | Puerta de Alcala |
| 1790 | - | Casa de la Panaderia |
| 1818-50 | Cuatodio Moreno | Teatro Real |
| 1883-1993 | Fernando Chueca Goitia & Carlos Sidro | Catedral de la Almudena |
| 1887 | Ricardo Velázquez Bosco | Mausoleum of Alfonso XII, Parque del Buen Retiro |
| 1887 | Ricardo Velázquez Bosco | Palacio de Cristal, Parque del Buen Retiro |
| 1889-1975 | - | Banco de Espana |
| 1892 | Alberto de Palacio Elissagne & Gustave Eiffel | Atocha Railway Station |
| 1905-17 | Antonio Palacios | Palacio de Comunicaciones |
| 1931 | - | Las Ventas |
| 1956 | - | Arco de la Victoria |
| 1992 | Salvador Perez Arroyo | Faro de Moncloa |
| 1996 | Pedro Senteri Cardillo & Johnson Burgee | Puerta de Europa |
