The very disputed election of Rutherford B. Hayes as the 19th President of the United States was solved by the party leaders in a basic compromise by which the Republicans agreed to withdraw the troops from the South and the Southern Democrats agreed to accept Hayes as President.