Madrid is the capital and largest city of Spain. It is the third-most populous municipality in the European Union after Greater London and Berlin, and its metropolitan area is the fourth-most populous urban area in the European Union after Paris, London, and the Ruhr Area.
The city is located on the river Manzanares in the centre of both the country and the Community of Madrid (which comprises the city of Madrid, its conurbation and extended suburbs and villages); this community is bordered by the autonomous communities of Castile and León and Castile-La Mancha. As the capital city of Spain, seat of government, and residence of the Spanish monarch, Madrid is also the political centre of Spain.