Maryville is a village in Madison County, Illinois, United States. The population was 8,221 at the 2020 census, up from 7,487 in 2010.