Davis was a recognized as a spokesman for the South. When Mississippi seceded, he resigned and accepted command of Mississippi's military forces. Later, he was elected president of the Confederate States. When the Confederacy surrendered, Davis was captured and imprisoned for two years, indicted for treason (but never brought to trial), and finally released on bond in 1867.