Hayes was born on Oct. 4, 1822.
He didn't get enough electoral votes to win the presidency outright, so Congress formed a commission to decide the winner. In the end, Hayes only won because his supporters cut a deal with party leaders to end Reconstruction.
Eleven years after the Civil War, Northern troops were still stationed across the South to keep the peace. The Democrats who dominated Southern politics were so eager to get the troops out, they agreed to support Hayes -- even though he was a Republican -- as long as he promised to end the occupation.
Hayes kept his word and began pulling the troops out soon after being sworn into office in 1877.