page_title: Community of Madrid
section_title: Al-Andalus
hierarchical_section_title: Community of Madrid / History / Al-Andalus
caption_attribution_description: Español: Lienzo suroeste del recinto amurallado de Buitrago del Lozoya. En él se observan tanto los torreones macizos como la barbacana.
context_page_description: The Community of Madrid is one of the seventeen autonomous communities of Spain. It is located in the centre of the Iberian Peninsula, and of the Central Plateau. Its capital is the city of Madrid, which is also the capital of the country. The Community of Madrid is bounded to the south and east by Castilla–La Mancha and to the north and west by Castile and León. It was formally created in 1983, based on the limits of the province of Madrid, which was until then conventionally included in the historical region of New Castile.
  The Community of Madrid is the third most populous in Spain with 6,549,979 inhabitants mostly concentrated in the metropolitan area of Madrid. It is also the most densely populated autonomous community. In absolute terms, Madrid's economy is, since 2018, slightly bigger in size to that of Catalonia. Madrid has the highest GDP per capita in the country.
  The region contains three World Heritage Sites: the Monastery and Royal Site of El Escorial, the University and historic centre of Alcalá de Henares, and the cultural landscape of Aranjuez.
context_section_description: The centre of the peninsula (the Middle Mark of Al-Andalus or aṯ-Ṯaḡr al-Awsaṭ) became a strategic military post in the 11th century. The Muslim rulers created a defensive system of fortresses and towers all across the region with which they tried to stop the advance of the Christian kingdoms of the north.
  The fortress of Mayrit (Madrid) was built somewhere between 860 and 880 AD, as a walled precinct where a military and religious community lived, and which constituted the foundation of the city. It soon became the most strategic fortress in defense of the city of Toledo above the fortresses of Talamanca and Qal'-at'-Abd-Al-Salam (Alcalá de Henares). In 1083 (or 1085) Alfonso VI took the city of Madrid in the context of his wider campaign to conquer Toledo. Alcalá de Henares fell in 1118 in a new period of Castilian annexation.
caption: City walls of Buitrago del Lozoya
exif: {"Image ImageDescription": "", "Image Make": "SONY", "Image Model": "DSC-N2", "Image Orientation": "Horizontal (normal)", "Image XResolution": "72", "Image YResolution": "72", "Image ResolutionUnit": "Pixels/Inch", "Image Software": "Adobe Photoshop CS3 Windows", "Image DateTime": "2008:07:02 14:20:14", "Image YCbCrPositioning": "Co-sited", "Image PrintIM": "[80, 114, 105, 110, 116, 73, 77, 0, 48, 51, 48, 48, 0, 0, 2, 0, 2, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0]", "Image ExifOffset": "296", "Thumbnail Compression": "JPEG (old-style)", "Thumbnail XResolution": "72", "Thumbnail YResolution": "72", "Thumbnail ResolutionUnit": "Pixels/Inch", "Thumbnail JPEGInterchangeFormat": "866", "Thumbnail JPEGInterchangeFormatLength": "8064", "EXIF ExposureTime": "1/800", "EXIF FNumber": "4", "EXIF ExposureProgram": "Program Normal", "EXIF ISOSpeedRatings": "160", "EXIF ExifVersion": "0221", "EXIF DateTimeOriginal": "2008:06:14 14:59:30", "EXIF DateTimeDigitized": "2008:06:14 14:59:30", "EXIF ComponentsConfiguration": "YCbCr", "EXIF CompressedBitsPerPixel": "8", "EXIF ExposureBiasValue": "0", "EXIF MaxApertureValue": "3", "EXIF MeteringMode": "Pattern", "EXIF LightSource": "Unknown", "EXIF Flash": "Flash did not fire, compulsory flash mode", "EXIF FocalLength": "79/10", "EXIF FlashPixVersion": "0100", "EXIF ColorSpace": "sRGB", "EXIF ExifImageWidth": "1200", "EXIF ExifImageLength": "900", "Interoperability InteroperabilityIndex": "R98", "Interoperability InteroperabilityVersion": "[48, 49, 48, 48]", "EXIF InteroperabilityOffset": "740", "EXIF FileSource": "Digital Camera", "EXIF SceneType": "Directly Photographed", "EXIF CustomRendered": "Normal", "EXIF ExposureMode": "Auto Exposure", "EXIF WhiteBalance": "Auto", "EXIF SceneCaptureType": "Standard", "EXIF Contrast": "Normal", "EXIF Saturation": "Normal", "EXIF Sharpness": "Normal"}