The Electoral College was established in the 18th century as a compromise between those who wanted the president to be elected by Congress and those who wanted the president to be elected by the people.