Kingdom of Galicia–Volhynia
In 1511, the rural settlement of Komarów (Ukrainian "Комарiв") became the property of Anna Sienieńska and was a key part of the commune of Olesko, located in the historical state of Ruthenia, Kingdom of Galicia–Volhynia. In 1605, Olesko and Olesko Castle became the property of wealthy landowner and nobleman Jan Daniłowicz herbu Sas, Voivode of the Ruthenian Voivodeship and grandfather of later King Jan III Sobieski.