Question: why was the presidential election of 1876 in dispute?
Answer: An informal deal was struck to resolve the dispute: the Compromise of 1877, which awarded all 20 electoral votes to Hayes; in return for the Democrats' acquiescence to Hayes' election, the Republicans agreed to withdraw federal troops from the South, ending Reconstruction.