 When Władysław retreated from the post of its governor in 1387 Galicia-Volhynia became occupied by the Hungarians, but soon Jadwiga the ruler of Poland, and wife of Lithuanian Grand Duke Jogaila, invaded and incorporated it into the Polish Crown by Jadwiga of Poland.The city later served as the homage site of some of the vassals of the Kings of Poland.As a part of Poland (and later Polish–Lithuanian Commonwealth) the city was known as Lwów and became the capital of the Ruthenian Voivodeship, which included five regions