Madrid has been the capital city of Spain since the late 16th century. It is located in the center of the Iberian Peninsula and has a population of over 3 million people. Madrid is the largest municipality in Spain and serves as the center of the Spanish government.