Madrid is the capital and most populous municipality of Spain. It has almost 3.4 million inhabitants and a metropolitan area population of approximately 7 million.