The Electoral College was created in 1787 as a compromise between those who wanted the president to be elected by Congress and those who wanted the president to be elected by a popular vote of the people.