madrid (/, spanish: [maˈðɾið])[n. 1] is the capital and most populous city of spain. the city has almost 3.3 million inhabitants and a metropolitan area population of approximately 6.5 million. it is the second-largest city in the european union (eu), surpassed only by berlin, and its monocentric metropolitan area is the second-largest in the eu, smaller only than paris. the municipality covers 604.3 km2 (233.3 sq mi).
madrid lies on the river manzanares in the centre of both the country and the (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, economic and cultural centre of the country. the current mayor is josé luis martínez-almeida from the people's party.
the madrid urban agglomeration has the third-largest gdp in the european union and its influence in politics, education, entertainment, environment, media, fashion, science, culture, and the arts all contribute to its status as one of the world's major global cities. madrid is home to two world-famous clubs, real madrid and atlético madrid. due to its economic output, high standard of living, and market size, madrid is considered
the major financial centre
 and the leading economic hub of the iberian peninsula and of southern europe. it hosts the head offices of the vast majority of major spanish companies, such as telefónica, iag or repsol. madrid is also the 10th most liveable city in the world according to monocle magazine, in its 2017 index.
madrid houses the headquarters of the un's world tourism organization (unwto), the ibero-american general secretariat (segib), the organization of ibero-american states (oei), and the public interest oversight board (piob). it also hosts major international regulators and promoters of the spanish language: the standing committee of the association of spanish language academies, headquarters of the royal spanish academy (rae), the cervantes institute and the foundation of urgent spanish (fundéu bbva). madrid organises fairs such as fitur, arco, simo tci and the madrid fashion week.
while madrid possesses modern infrastructure, it has preserved the look and feel of many of its historic neighbourhoods and streets. its landmarks include the plaza mayor, the royal palace of madrid; the royal theatre with its restored 1850 opera house; the buen retiro park, founded in 1631; the 19th-century national library building (founded in 1712) containing some of spain's historical archives; many national museums, and the golden triangle of art, located along the paseo del prado and comprising three art museums: prado museum, the reina sofía museum, a museum of modern art, and the thyssen-bornemisza museum, which complements the holdings of the other two museums. cibeles palace and fountain have become one of the monument symbols of the city.