Fayette County is a county located in the U.S. state of Illinois. As of the 2020 census, the population was 21,488. Its county seat is Vandalia, the site of the Vandalia State House State Historic Site. Ramsey Lake State Recreation Area is located in the northwestern part of this county.