In the second half of the 13th century, during the Árpád and Anjou dynasty struggle, the Šubić family became hugely powerful under Paul I Šubić of Bribir, who was the longest Croatian Ban (1274–1312), conquering Bosnia and declaring himself "Lord of all of Bosnia" (1299–1312). He appointed his brother Mladen I Šubić as Ban of Bosnia (1299–1304), and helped Charles I from House of Anjou to be the King of Hungary. After his death in 1312, his son Mladen II Šubić was the Ban of Bosnia (1304–1322) and Ban of Croatia (1312–1322). The kings from House of Anjou intended to strengthen the kingdom by uniting their power and control, but to do so they had to diminish the power of the higher nobility. Charles I had already tried to crash the aristocratic privileges, intention finished by his son Louis the Great (1342–1382), relying on the lower nobility and towns. Both kings ruled without the Parliament, and inner nobility struggles only helped them in their intentions. This led to Mladen's defeat at the battle of Bliska in 1322 by a coalition of several Croatian noblemen and Dalmatian coastal towns with support of the King himself, in exchange of Šubić's castle of Ostrovica for Zrin Castle in Central Croatia (thus this branch was named Zrinski) in 1347. Eventually, the Babonić and Nelipić families also succumbed to the king's offensive against nobility, but with the increasing process of power centralization, Louis managed to force Venice by the Treaty of Zadar in 1358 to give up their possessions in Dalmatia. When King Louis died without successor, the question of succession remained open. The kingdom once again entered the time of internal unrest. Besides King Louis's daughter Mary, Charles III of Naples was the closest king male relative with claims to the throne. In February 1386, two months after his coronation, he was assassinated by order of the queen Elizabeth of Bosnia. His supporters, bans John of Palisna, John Horvat and Stjepan Lacković planned a rebellion, and managed to capture and imprison Elizabeth and Mary. By orders of John of Palisna, Elizabeth was strangled. In retaliation, Magyars crowned Mary's husband Sigismund of Luxembourg.