O'Fallon is a city in St. Clair County, Illinois, United States. The 2020 census listed the population at 32,289. The city is the second largest city in the Metro East region and Southern Illinois. It sits 5 miles from Scott Air Force Base and 18 miles from Downtown St. Louis.