Madrid is one of Spain's seventeen autonomous communities, located in the centre of the country. It is coterminous with the province of Madrid, and contains the city of Madrid which is the capital of the province, the community, and the country.
Madrid is bordered by the autonomous communities of Castile-Leon (provinces of Ávila and Segovia) and Castile-La Mancha (provinces of Guadalajara, Cuenca, and Toledo).
Madrid was formerly considered part of New Castile (see Castile-La Mancha) but was made into its own community at the beginning of the autonomía system because of great economic disparity between Madrid and the Castilian-Manchego hinterland.
Madrid, as the capital, has attracted people from all over the nation, and its folklore reflects this diversity in the different communities of the city.
Madrid is the centre of a wheel of road and rail communications.
The city of Madrid was built as a military base and was used throughout the rest of the Middle Ages as a hunting centre for the monarchs.
Madrid is the cultural center of Spain, with theaters, museums, libraries, and educational institutions that attract many scholars and visitors.
Madrid's population stopped growing from 1630 to 1720 because foreign wars and the decline in silver from Spain’s American colonial empire bankrupted the Spanish government.
Madrid was the site of the worst terrorist attack in Spain’s history in March 2004 when ten bombs detonated on four commuter trains during the morning rush hour, killing at least 191 people and injuring more than 1,500.