Under the U.S. Constitution, Article II, Section 1, Clause 3, as modified by the 12th Amendment (ratified in 1804), provides for the election of the President and Vice President through the Electoral College rather than by popular vote.
The Constitution uses the Electoral College as the method for choosing the President and Vice President. This means citizens don't elect the President instead, electors chosen by each state cast the votes.