Which statement accurately explains the Compromise of 1877?

• It was a compromise between Republicans and moderate Democrats to end a disputed election.
• It was a compromise between Republicans and moderate Democrats to establish the Freedmen's Bureau.
• It was a compromise between Republicans and the president to end a disputed election.
• It was a compromise between Republicans and the president to establish the Freedmen's Bureau.

It was a compromise between Republicans and the president to end a disputed election.