 On December 8, 1625 he was crowned King of Hungary, on November 27, 1627 King of Bohemia.His father was unable to secure him the election as Roman king at the Regensburg diet of 1630.After he had unsuccessfully applied for the supreme command of the imperial army and participation in campaigns of Wallenstein, he joined Wallenstein's opponents at the imperial court in Vienna and had been involved in the arrangements on his second deposition in the beginning of 1634.