The electoral college is part of the CONSTITUTION.
Article Two of the United States Constitution
Article Two of the United States Constitution establishes the executive branch of the federal government, which carries out and enforces federal laws. Article Two vests the power of the executive branch in the office of the president of the United States, lays out the procedures for electing and removing the president, and establishes the president's powers and responsibilities.
Section 1 of Article Two establishes the positions of the president and the vice president, and sets the term of both offices at four years. Section 1's Vesting Clause declares that the executive power of the federal government is vested in the president and, along with the Vesting Clauses of Article One and Article Three, establishes the separation of powers among the three branches of government. Section 1 also establishes the Electoral College, the body charged with electing the president and the vice president. Section 1 provides that each state chooses members of the Electoral College in a manner directed by each state's respective legislature, with the states granted electors equal to their combined representation in both houses of Congress. Section 1 lays out the procedures of the Electoral College and requires the House of Representatives to hold a contingent election to select the president if no individual wins a majority of the electoral vote. Section 1 also sets forth the eligibility requirements for the office of the president, provides procedures in case of a presidential vacancy, and requires the president to take an oath of office.
Section 2 of Article Two lays out the powers of the presidency, establishing that the president serves as the commander-in-chief of the military, among many other roles. This section gives the president the power to grant pardons.
Section 2 also requires the "principal officer" of any executive department to tender advice. Though not required by Article Two, President George Washington organized the principal officers of the executive departments into the Cabinet, a practice that subsequent presidents have followed. The Treaty Clause grants the president the power to enter into treaties with the approval of two-thirds of the Senate. The Appointments Clause grants the president the power to appoint judges and public officials subject to the advice and consent of the Senate, which in practice has meant that presidential appointees must be confirmed by a majority vote in the Senate. The Appointments Clause also establishes that Congress can, by law, allow the president, the courts, or the heads of departments to appoint "inferior officers" without requiring the advice and consent of the Senate. The final clause of Section 2 grants the president the power to make recess appointments to fill vacancies that occur when the Senate is in recess.
Section 3 of Article Two lays out the responsibilities of the president, granting the president the power to convene both houses of Congress, receive foreign representatives, and commission all federal officers. Section 3 requires the president to inform Congress of the "state of the union"; since 1913 this has taken the form of a speech referred to as the State of the Union. The Recommendation Clause requires the president to recommend measures deemed "necessary and expedient." The Take Care Clause requires the president to obey and enforce all laws, though the president retains some discretion in interpreting the laws and determining how to enforce them.
Section 4 of Article Two establishes that the president and other officers can be removed from office through the impeachment process, which is further described in Article One.