The Twenty-fifth Amendment (Amendment XXV) to the United States Constitution says that if the President becomes unable to do their job, the Vice President becomes the President.
If anything happens to the president such as death, resigning, or is removed from office, then the vice president can take over and become vice president.