'' claims and territory in 1301 (from the
Illuminated Chronicle).|alt=Two crowned men, each riding a horse Andrew III of Hungary died on 14 January 1301, leaving no male heirs. The late king's rival,
Charles of Anjou, who was
Béla IV of Hungary's great-great-grandson, had regarded himself as the lawful king of Hungary for years. On hearing Andrew III's death, Charles of Anjou hurried to
Esztergom, where
Gregory Bicskei,
Archbishop-elect of Esztergom, crowned him king. Being
Pope Boniface VIII's candidate for the Hungarian throne, Charles had always been unpopular, because the Hungarian lords feared that they would "lose their freedom by accepting a king appointed by the Church", according to the
Illuminated Chronicle. Charles's coronation was not performed with the
Holy Crown of Hungary in
Székesfehérvár, as it was required by customary law, but with a provisional crown in Esztergom. Accordingly, the
diet of Hungary declared Charles's coronation invalid on 13 May 1301.
Jan Muskata,
Bishop of Kraków, who was Wenceslaus II of Bohemia's advisor, was the first to propose that Wenceslaus II's son and namesake should be elected king of Hungary. The younger Wenceslaus was not only Béla IV of Hungary's great-great-grandson, but also the fiancé of the late Andrew III of Hungary's daughter. Bribed by Wenceslaus II's agents, the majority of the Hungarian lords and prelates decided to offer the crown to the young Wenceslaus and sent a delegation to his father in Bohemia. Wenceslaus II met the Hungarian envoys in
Hodonín in August and accepted their offer in his eleven-year-old son's name. Wenceslaus II accompanied his son to
Székesfehérvár, where
John Hont-Pázmány,
archbishop of Kalocsa, crowned the young Wenceslaus king with the Holy Crown on 27 August. Wenceslaus, who assumed the name Ladislaus, signed all his charters under that name in Hungary. After Wenceslaus II returned to Bohemia,
Jan Muskata became the young king's principal advisor in Hungary. Most lords and prelates accepted the rule of Wenceslaus-Ladislaus. In contrast with their Hungarian peers, the Croatian lords did not acknowledge Wenceslaus-Ladislaus as a lawful king and remained faithful to Charles of Anjou. The latter withdrew to the southern territories of Hungary after
Ivan Kőszegi, who was a partisan of Wenceslaus-Ladislaus, captured Esztergom in late August 1301. However, both kings' authority remained nominal because Hungary had meanwhile disintegrated into a dozen provinces, each headed by a powerful lord, or "
oligarch". The
Illuminated Chronicle writes that the Hungarian lords did not "grant a castle, or might and power, or royal authority" either to Wenceslaus-Ladislaus or to Charles of Anjou. In his letters to Wenceslaus II of Bohemia and Archbishop John of Kalocsa, Pope Boniface VIII emphasised that Wenceslaus-Ladislaus had been crowned without the authorisation of the
Holy See. The
papal legate,
Niccolo Boccasini, who came to Hungary in September, started negotiations with the Hungarian prelates to convince them to abandon Wenceslaus-Ladislaus and support Charles of Anjou's case. In an attempt to buy the most powerful lords off, Wenceslaus-Ladislaus granted large estates and high offices to them.
Matthew Csák received
Nyitra and
Trencsén Counties, along with the royal castles and the estates attached to them, in February 1302. Ivan Kőszegi was made
Palatine of Hungary before 25 April 1302. In the first half of that year, many prelates (including
Stephen, the new
Archbishop of Kalocsa) abandoned Wenceslaus-Ladislaus; even Jan Muskata left Hungary. Taking advantage of the weakened position of his rival, Charles of Anjou attempted to capture
Buda, the capital of Wenceslaus-Ladislaus, in September 1302. After laying siege to Buda, Charles of Anjou called upon the burghers to extradite Wenceslaus-Ladislaus. The mainly German
citizenry and their major, Werner, remained faithful to the young king and Ivan Kőszegi relieved the city in the same month. After Charles of Anjou withdrew from Buda, the papal legate placed the town under
interdict. In response, a local priest
excommunicated the pope and all Hungarian prelates. On 31 May 1303, Pope Boniface VIII declared Charles of Anjou the lawful king of Hungary, stating that Wenceslaus-Ladislaus's election had been invalid. Thereafter,
Albert I of Germany, who was the maternal uncle of both Wenceslaus-Ladislaus and Charles of Anjou, called on Wenceslaus-Ladislaus to withdraw from Hungary. To strengthen his son's position, Wenceslaus II of Bohemia came to Hungary at the head of a large army in May 1304. He captured
Esztergom, but his negotiations with the local lords convinced him that his son's position in Hungary had dramatically weakened. Accordingly, he decided to take Wenceslaus-Ladislaus back to Bohemia. Wenceslaus-Ladislaus did not renounce Hungary and made Ivan Kőszegi governor before leaving for Bohemia in August. He even took the Holy Crown of Hungary with himself to Prague. Charles of Anjou and
Rudolf III of Austria invaded
Moravia in September, but did not defeat Wenceslaus II's army. In the same months, a member of the
Piast dynasty,
Władysław I Łokietek, who had claimed Poland against Wenceslaus II, returned to Poland at the head of Hungarian troops. Before long, he captured many important forts and towns, including
Pełczyska,
Wiślica,
Sandomierz and
Sieradz. == King of Bohemia and Poland (1305–1306) and death ==