The president was indirectly elected by the people through the Electoral College to a six-year term, and was one of only two nationally elected Confederate officers, the other being the vice president. On February 18, 1861, Jefferson Davis became president of the provisional government, as well as the only person to assume the position. On February 22, 1862, he became president of the permanent government and served in that capacity until the Confederacy's military collapse. The Confederate States cabinet declared the Confederacy dissolved May 5, 1865, after which Davis stopped attempting to exercise his office's powers and duties. May 5th is therefore generally considered to be the day the Confederate States of America (and its presidency) were formally abolished. Davis himself was captured by elements of the United States Cavalry five days later.