McLeansboro is a city in Hamilton County, Illinois, United States. The population was 2,883 at the 2010 census. The estimated population as of 2018 was 2,773. It is the county seat of Hamilton County.
McLeansboro is part of the Mount Vernon, Illinois micropolitan area.