After the surrender of the Confederate Army, Southern politicians and Army officers were not automatically pardoned and were forbidden to hold public office. At the time of his candidacy, Benjamin Humphreys was unpardoned, and President Andrew Johnson did not want him elected. Unwilling to withdraw his candidacy, on October 2, 1865, Humphreys was elected as a Democrat, but was not immediately recognized as the Governor of Mississippi. Without presidential approval, on October 16, 1865, Humphreys had himself inaugurated and sworn in as the 26th Governor of Mississippi. By October 26, 1865, Mississippi provisional Governor, William L. Sharkey, received from President Andrew Johnson a pardon authorizing political office under the Reconstruction plan. He won re-election in 1868 and continued with a second term, but with the beginning of Congressional control of Reconstruction he was physically removed by occupying U.S. armed forces on June 15 of that year.