Early in the 14th century, after the death of Boleslaw-Yuri II of Galicia, the King of Rus, there started a war for its succession. Eventually the Duchy was inherited by a prince Yuri, son of Narimantas (Jerzy Narymuntowicz) of the Grand Duchy of Lithuania. The period of Yuri's rule of Belz (1340-1377) saw the Galicia–Volhynia Wars; Belz was besieged several times (in 1351, 1352 and 1355). From 1378 to 1387 it fell into the sphere of influence of the Kingdom of Hungary, as in 1377 Belz was captured by Louis I of Hungary; for several years, the duchy was governed in Louis's name by prince Władysław Opolczyk. At that time, Poland was in a brief union with Hungary, but in 1387, after the end of the union, Belz was taken by Queen Jadwiga of Kingdom of Poland.