Yes, Danville, Virginia served as the last capital of the Confederate States of America. After the fall of Richmond on April 3, 1865, President Jefferson Davis and his cabinet fled by train to Danville, bringing the Confederate treasury and archives. The government operated there for about a week before moving further south to Greensboro and then Charlotte, North Carolina, where it dissolved on May 9, 1865.