Madrid is a village in Perkins County, Nebraska, United States. The population was 231 at the 2010 census.