To elect the President of the United States of America.
By popular vote, the states elect a number of electors equal to the sum of their members in the House of Representatives plus 2 (for their Senators) . . . the electors then vote for their choice for President . . . majority wins . . . BTW, there is no legal restriction on who they vote for once in place as an elector.