The Confederate States Congress was both the provisional and permanent legislative assembly of the Confederate States of America that existed from 1861 to 1865. Its actions were, for the most part, concerned with measures to establish a new national government for the Southern proto-state, and to prosecute a war that had to be sustained throughout the existence of the Confederacy. At first, it met as a provisional congress both in Montgomery, Alabama, and Richmond, Virginia. As was the case for the provisional Congress after it moved to Richmond, the permanent Congress met in the existing Virginia State Capitol, a building which it shared with the secessionist Virginia General Assembly.