The Compromise of 1877 gave Rutherford B. Hayes the presidency in exchange for the end of Reconstruction in the South. Hayes was the Democratic candidate for president in 1876 against the Republican candidate Samuel Tilden. ... This was an informal, unwritten,agreement between Hayes and the Congressmen.