<P> The Compromise of 1877 was a purported informal, unwritten deal that settled the intensely disputed 1876 U.S. presidential election . It resulted in the United States federal government pulling the last troops out of the South, and formally ended 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 Republicans also left, and the "Redeemer" Democrats took control . They already dominated most other state governments in the South . What was exactly agreed is somewhat contested as the documentation is scanty . </P> <P> Black Republicans felt betrayed as they lost power and were subject to discrimination and harassment to suppress their voting . At the turn of the twentieth century, most black people were effectively disenfranchised by state legislatures in every southern state, despite being a majority in some . </P>

Who was responsible for pulling the last federal troops out of the south