 In 1876, Hayes was elected president in one of the most contentious elections in national history. He lost the popular vote to Democrat Samuel J. Tilden but he won an intensely disputed electoral college vote after a Congressional commission awarded him twenty contested electoral votes. The result was the Compromise of 1877, in which the Democrats acquiesced to Hayes's election and Hayes ended all U.S. military involvement in Southern politics.
