Delegates to the Constitutional Convention in 1787 argued over a lot of things, but one of their biggest debates was over how the United States should elect its president. The Electoral College was the solution they settled on, a compromise between those who wanted a popular vote and those who wanted Congress to choose the president.
The Electoral College is a voting system used in the United States presidential elections. Under this system, each state is allocated a certain number of electors based on its representation in Congress. The number of electors from each state is roughly in line with the size of its population.
The number of electors from each state is determined by adding the number of Senators and Representatives the state has in Congress. This means that each state gets one vote for each Senator and Representative it has.