After King Casimir's death (1370), Louis I, King of Poland and Hungary subjected Red Ruthenia to the authority of Hungarian-appointed starostas, overlooked by Duke Vladislaus II of Opole. Hungarians remained in Halich until 1387, when Queen Jadwiga of Poland removed them and re-annexed the area into Poland. In the Kingdom of Poland, Halich remained one of main administrative centers of the Ruthenian Voivodeship. In 1564, the Sejm in Warsaw created a sejmik in Halicz, which ruled over the Ziemia of Halicz, including the powiats of Halicz, Trembowla and Kolomyja.