Presidents are elected indirectly by electoral college.
The election of president and vice president of the United States is an indirect election in which citizens of the United States who are registered to vote in one of the 50 U.S. states or in Washington, D.C. cast ballots not directly for the candidates, but instead for members of the U.S. Electoral College, called electors. These electors cast direct votes, known as electoral votes, for president, and for vice president.