Madrid is a south-western European city, the capital of Spain, and the largest municipality of the Community of Madrid.