In 1385, Jadwiga was expected to marry William Habsburg of Austria, but the noble lords were apprehensive about the match believing that it would not secure national interests against the Luxembourgs, who controlled Bohemia and Brandenburg. She eventually wedded the Lithuanian Grand Duke Jogaila (Władysław II Jagiełło), thus forming the Jagiellonian dynasty (1386–1572) and the Polish–Lithuanian union that spanned the late Middle Ages and early Modern Era. The partnership brought the vast multi-ethnic Lithuanian territories into Poland's sphere of influence and proved beneficial for the Poles and Lithuanians, who coexisted in one of the largest European political entities of the time.