What was the Compromise of 1877?

The Compromise of 1877 settled the presidential election of 1876, giving the office to Republican Rutherford B.Hayes over Democrat Samuel J. Tilden.