Compromise of 1877
The Compromise of 1877 was an unwritten deal, informally arranged among U.S. Congressmen, that settled the intensely disputed 1876 presidential election. It resulted in the United States federal government pulling the last troops out of the South, and formally ending the Reconstruction Era. Through the Compromise, Republican Rutherford B. Hayes was awarded the White House over Democrat Samuel J. Tilden on the understanding that Hayes would remove the federal troops whose support was essential for the survival of Republican state governments in South Carolina, Florida and Louisiana. The compromise involved Democrats who controlled the House of Representatives allowing the decision of the Electoral Commission to take effect. The outgoing president, Republican Ulysses S. Grant, removed the soldiers from Florida. As president, Hayes removed the remaining troops from South Carolina and Louisiana. As soon as the troops left, many white Republican carpetbaggers also left, and the "Redeemer" Democrats took control. They already dominated other state governments in the South. What was exactly agreed is somewhat contested as the documentation is insufficient.
Read article on Wikipedia