Capetian House of Anjou
After the Polish royal line and Piast junior branch died out in 1370, Poland came under the rule of Louis I of Hungary of the Capetian House of Anjou, who presided over a union of Hungary and Poland that lasted until 1382. In 1374, Louis granted the Polish nobility the Privilege of Koszyce to assure the succession of one of his daughters in Poland. His youngest daughter Jadwiga (d. 1399) assumed the Polish throne in 1384.