Petersburg is a city in and the county seat of Menard County, Illinois, United States, on the bluffs and part of the floodplain overlooking the Sangamon River. It is part of the Springfield, Illinois Metropolitan Statistical Area. The population was 2,258 at the 2020 census, nearly unchanged from 2010. Petersburg is located approximately 2 miles north of New Salem, the original location where Abraham Lincoln first settled, as he started his career.