On November 6, 1861, the Confederate Congress elected Jefferson Davis to be their first president. Davis had been a Congressman prior to secession, and he dearly hoped the Union would hold. But when Mississippi voted to secede, he knew as their representative, he had to go with them. His term was to be six years, and he remained president until May 5, 1865, when the Confederate government was officially dissolved.