Republican Rutherford B. Hayes defeats Democrat Samuel Tilden in a contested election amidst allegations of widespread voter fraud in crucial districts. This leads to the so-called Compromise of 1877, under which Democrats do not strongly contest the election results and Republicans agree to withdraw federal troops, returning Southern governments to white local control and thus effectively ending Reconstruction.