 However, old and ailing, he was unable to prevent a takeover by Maximilian's faction.Ferdinand, who had already been crowned King of Bohemia (1617) and of Hungary (1618), succeeded Matthias as Holy Roman Emperor.As the Imperial Crypt at Vienna was not yet completed, Anna († in 1618) and Matthias († in 1619) were temporarily buried in St. Maria's Queen's Monastery.