Vandalia is a city in Fayette County, Illinois, United States. It is northeast of St. Louis, on the Kaskaskia River. It was the capital of Illinois from 1819 to 1839. (The state legislature moved the capital from Kaskaskia to a more central location in Vandalia.) It was also the west end of the National (Cumberland) Road, which is now U.S. Highway 40. Today it is the county seat of Fayette County and the home of the Vandalia State House State Historic Site (1836). The population was 7,042 at the 2010 census.