What was the Capital of the Confederacy?

The capital of the confederacy was actually my hometown Richmond, VA. This was important strategically because it was only a hundred miles from the union capital of DC.