In 1796, John Adams got the majority of the votes, but his party, the Federalists, also voted for a number of other people, which helped lead to Thomas Jefferson getting the second highest number. Jefferson was from a different party, but yet, he became vice president.
In an effort to unify party voting, electors were encourage to vote the same party in 1800. Voters expected Thomas Jefferson to be president and Aaron Burr as vice president, but in the end, the election was a tie. It went to the House of Representatives, and Jefferson won the election. When in office, Jefferson isolated Burr from any political discussion or policy decisions.