Danville is an independent city in Virginia, United States, bounded by Pittsylvania County, Virginia and Caswell County, North Carolina. It was the last capital of the Confederate States of America. The Bureau of Economic Analysis combines the city of Danville with Pittsylvania county for statistical purposes under the Danville, Virginia Metropolitan Statistical Area. Danville is also called the city of churches because it has more churches per square mile than any other city in the state of Virginia. The population was 48,411 at the 2000 census. It hosts the Danville Braves baseball club of the Appalachian League. Dan River Industries, formerly one of the world's largest textile mills, recently closed leaving a large number of Danvillians without jobs.