Twenty-fifth Amendment to the United States Constitution
At other times, Presidents did not die, but they were unable to do their jobs because of illness.  For example, during his Presidency, Woodrow Wilson had a stroke.  However, the First Lady, Edith Wilson, and the official White House doctor kept the stroke a secret.  Because of this, no one took over the Presidency, even though Wilson could not do the job at that time.