Roanoke County, named for the Roanoke River, was formed in 1838. Salem was the original county seat, but when Salem became an independent city, it was agreed that the Roanoke County courthouse would remain in Salem. The county administrative offices were moved to Cave Spring, and Salem is still the County Seat for Roanoke County.