structural:reformatting, quality:corruption
Death and succession

During his last years, Maximilian began to focus on the question of his succession. His goal was to secure the throne for Charles. According to the traditional view, a credit of one million gulden was provided (to Charles, after Maximilian's death, according to Wiesflecker and Koenigsberger) by the Fuggers (the Cortes had voted over 600,000 crowns for Charles's election campaign, but money from Spain could not arrive quick enough), which was used for advertising and to bribe the prince-electors, and that this was the decisive factor in Charles's successful election. Others point out that while the electors were paid, this was not the reason for the outcome, or at most played only a small part. The important factor that swayed the final decision was that Frederick refused the offer, and made a speech in support of Charles on the ground that they needed a strong leader against the Ottomans, Charles had the resources and was a prince of German extraction. The death of Maximilian in 1519 seemed to put the succession at risk, but in a few months the election of Charles V was secured.

In 1501, Maximilian fell from his horse and badly injured his leg, causing him pain for the rest of his life. Some historians have suggested that Maximilian was "morbidly" depressed: from 1514, he travelled everywhere with his coffin. In 1518, feeling his death near after seeing an eclipse, he returned to his beloved Innsbruck, but the city's innskeepers and purveyors did not grant the emperor's entourage further credit. The resulting fit led to a stroke that left him bedridden on 15 December 1518. However, he continued to read documents and received foreign envoys right until the end. Maximilian died in Wels, Upper Austria, at three o'clock in the morning on 12 January 1519. Different historians have listed different diseases as the main cause of death, including cancer (likely stomach cancer or intestinal cancer), pneumonia, syphilis, gall stones, stroke (he did have a combination of dangerous medical problems) etc.

Maximilian was succeeded as Emperor by his grandson Charles V, his son Philip the Handsome having died in 1506. For penitential reasons, Maximilian gave very specific instructions for the treatment of his body after death. He wanted his hair to be cut off and his teeth knocked out, and the body was to be whipped and covered with lime and ash, wrapped in linen, and "publicly displayed to show the perishableness of all earthly glory". Gregor Reisch, the emperor's friend and confessor who closed his eyes, did not obey the instruction though. He placed a rosary in Maximilian's hand and other sacred objects near the corpse. He was buried in the Castle Chapel at Wiener Neustadt on borrowed money. The casket was opened during renovation under Maria Theresa. After that, the body was reinterred in a Baroque sarcophagus, that later was found unscathed amidst the wreckage of the chapel (due to the Second World War) on 6 August 1946. The emperor was ceremoniously buried again in 1950.