The election of Rutherford B Hayes led to the Compromise of 1877, where the Republican party agreed to remove Union troops from the South so that the South would respect the election of Rutherford B Hayes. With the removal of Union troops from the South, Southerners restored a Democratic government similar to the one from before the Civil War, which criminalized the black community through the exploitation of the 13th Amendment loophole.