The compromise of 1877 was known as the "corrupt bargain." It signified the end of reconstruction in the south. It settled the dispute over the 1876 US presidential election. The secret deal allowed for the Republican party candidate, Rutherford Hayes to become the next president. The Democrats were guaranteed political power in the southern state governments, which occurred because the house of representatives was democrat.
There was some dispute over how the votes should be counted, so they referred the issue to an electoral commission, which was made up of five senators, five representatives, and five justices of the supreme court. Republican and Democrat leaders reached a compromise. The president withdrew the troops from the south, and the compromise was seen as a betrayal by the former slaves because the Republicans abandoned their efforts to obtain equal rights for black Americans, hence the name "the corrupt bargain."