Article Two of the United States Constitution
Before he becomes President, Clause 8 requires the new President to take an oath, promising that he will do his best as President, and will also do his best to protect and defend the Constitution.  Usually, the Chief Justice of the United States gives the oath ("swears in" the new President) at the President's inauguration.