Salem is an independent city in the U.S. commonwealth of Virginia. As of the 2010 census, the population was 24,802. It is the county seat of Roanoke County, although the two are separate jurisdictions. The Bureau of Economic Analysis combines the city of Salem with Roanoke County, which surrounds both Salem and the neighboring City of Roanoke, for statistical purposes. Salem has its own courthouse and sheriff's office, but shares a jail with Roanoke County, which in located in the Roanoke County Courthouse complex in Salem. The Roanoke County Sheriff's Office and Roanoke County Department of Social Services are also located within Salem, though the county administrative offices are located in unincorporated Cave Spring.