End of the Arpad dynasty
Budapest, Buda Castle, Szent GA group of powerful lords—including the Šubići, Kőszegis and Csáks—urged Charles II of Naples to send his grandson, the 12-year-old Charles Robert, to Hungary in order to become king. The young Charles Robert disembarked in Split in August 1300. Most Croatian and Slavonian lords and all Dalmatian towns but Trogir recognized him as king before he marched to Zagreb. The Kőszegis and Matthew Csák, however, were shortly reconciled with Andrew, preventing Charles' success. Andrew's envoy to the Holy See noted that Pope Boniface VIII did not support Charles Robert's adventure, either. Andrew, who had been in poor health for a while, was planning to capture his opponent, but he died in Buda Castle on 14 January 1301. According to historians Attila Zsoldos and Gyula Kristó, the contemporaneous gossip suggesting that Andrew was poisoned cannot be proved.
Years later, Palatine Stephen Ákos referred to Andrew as the "last golden branch" of the tree of King Saint Stephen's family, because with Andrew's death the House of Árpád, the first royal dynasty of Hungary, ended. A civil war between various claimants to the throne—Charles Robert, Wenceslaus of Bohemia, and Otto of Bavaria—followed Andrew's death and lasted for seven years. The civil war ended with Charles Robert's victory, but he was forced to continue fighting against the Kőszegis, the Abas, Matthew Csák, and other powerful lords up to the early 1320s.