Madrid /ˈmædrɪd/ is a city in Douglas Township, Boone County, Iowa, United States. The population was 2,543 at the 2010 census. It is part of the Boone, Iowa Micropolitan Statistical Area, which is a part of the larger Ames-Boone, Iowa Combined Statistical Area.