In 1374 King Louis of Hungary approved the Privilege of Koszyce (Polish: "przywilej koszycki" or "ugoda koszycka") in Košice in order to guarantee the Polish throne for his daughter Jadwiga.