The Compromise of 1876 and the removal of federal troops from the South by order of President Rutherford B. Hayes on May 1, 1877 ended Reconstruction. Reconstruction was the time between 1865 and 1877 when the federal government set the laws in which the southern states were allowed to be readmitted back into the United States. All former Confederate states were admitted back into the country by 1870.
The Compromise of 1876 was a promise between Republican presidential candidate Hayes and Democrats in Congress. If the Democrats agreed to his election, he would recognize Democratic control of the South. Hayes also included a promise to withdraw troops from the south in his campaign. At the end of Reconstruction, the white southerners who had disenfranchised African-Americans regained control of the region.