How did the Compromise of 1877 help end Reconstruction?

How did the Compromise of 1877 help end Reconstruction?