In 1370 Louis I of Hungary became king of Poland, but his office was interrupted by his death. In 1374, his daughter Jadwiga (Hedwig) ascended the throne.
Hedwig ruled independently until 1386 when she married Ladislaus Jagiello. In this way, on March 4, 1386, after the coronation of Jagiello, the Jagiellonian dynasty took over Poland's rule.