However tensions with the House of Habsburg arose, when in 1306 Duke Henry married the Přemyslid princess Anne, the elder sister of King Wenceslaus III of Bohemia. In the same year, the Bohemian ruler prepared for a military campaign against Poland and appointed his brother-in-law regent. Upon Wenceslaus' assassination on August 4, the Přemyslids became extinct in the male line and Henry was elected his successor by the Bohemian nobility—against the will of his former ally King Albert I of Germany, who intended to install his eldest son Rudolf of Habsburg on the Bohemian throne. King Albert's troops immediately campaigned Bohemia, besieged Prague Castle and deposed Henry, who had to yield to their superior forces. Nevertheless, Rudolf of Habsburg was never accepted by the Bohemian nobles, and after his sudden death on 4 July 1307, Henry was elected King of Bohemia again, on 15 August. Another attack by King Albert was rejected and the threat by the Habsburg dynasty finally fell apart with Albert's assassination by his nephew John in 1308. Henry was now on par with the most powerful dynasties in the Empire, however, his rule was not stabilized: as he turned out to be a weak and wasteful ruler, the Bohemian nobility began to look for a capable successor. Meanwhile, the new German kingHenry VII, a member of the House of Luxembourg, also had cast a covetous eye on the Bohemian kingdom. In 1310 Henry VII arranged the marriage of his eldest son John with Elizabeth, the younger sister of the late King Wenceslaus III. Backed by local nobles and his father, John's troops campaigned Bohemia in October. He captured Prague on 3 December and deposed Henry for the second time while the German king seized the Bohemian fief and ceded it his son John, who was crowned king the next year. Henry was forced to retire to Carinthia, where his wife Anna died without children in 1313.
Retirement
Henry at least managed to retain Carinthia and Tyrol by reconciliation with the Habsburg dynasty, ceding the March on the Sann to their Styrian duchy. He also retained the de facto control over Carniola. He nevertheless was not able to acquire the Carinthian estates that were held by the prince-bishops of Bamberg with the consent of Emperor Henry VII. Centered in a compact territory between Villach and Tarvis, these possessions enjoyed the status of a virtually sovereign principality, and had a crucial geostrategic position on the only major route from Carinthia to Friuli and Italy. On the other hand, Henry could reinforce his overlordship in Tyrol against the resistance of the Trient and Brixen prince-bishops. Despite his deposition, Henry claimed the title of king of Bohemia and the accompanying electoral dignity: he took part in the 1314 double election of the rex Romanorum at Frankfurt, voting for the Habsburg candidate Frederick the Fair. His contested right to vote was one of the reasons for the ambiguous result, as Henry's rival, the Luxembourg king John, gave his Bohemian vote to Louis IV of Bavaria. After Louis' victory in the 1322 Battle of Mühldorf, Henry helped to arrange an amicable settlement between the competitors. Henry also reconciled with the Luxembourgs and in 1330 married his daughter Margaret off to King John's son John Henry. Since he was the last male heir of the Tyrolean branch of the Meinhardiner dynasty, he attempted to maintain their possessions, but ultimately failed. Even though Emperor Louis IV, in return for Henry's mediation in the dispute with Frederick the Fair, had assured him in 1330 that his daughter could succeed him, Louis reneged on his promise in a secret treaty with the House of Habsburg in the same year. After Henry's death in 1335, the Habsburg duke Albert II of Austria and his brother Otto took control of Carinthia and Carniola. Henry's daughter Margaret could only succeed him in Tyrol with the support of the local nobles; however, in 1363 she ultimately had to bequeath her lands to Albert's II son Duke Rudolf IV of Austria as well. The Gorizia branch of the Meinhardiner dynasty ruled their county until the extinction of the line 1500, whereafter the estates likewise fell to the Habsburgs.
Marriage and issue
Henry was married three times: In 1306, he married Anna Přemyslovna. This marriage produced no children. In 1313, he wed Adelaide of Brunswick, daughter of the Welf duke Henry I of Brunswick-Grubenhagen. This marriage produced two daughters: