The Electoral Count Act was passed in 1887, after four states sent in votes from two different sets of electors from the 1876 presidential race between Rutherford B. Hayes and Samuel Tilden. Congress had established no mechanism to resolve fights over competing slates of electors, and it adopted the act in hope of heading off future disputes.