On 20 Mar 1619 Matthias died and Ferdinand automatically became the King of Bohemia. Ferdinand was also subsequently elected Holy Roman Emperor as Ferdinand II.