Sparta is a town and the county seat of Alleghany County, North Carolina, United States. As of the 2020 census, the population of the town was 1,834.