From the first partition of Poland in 1772 until 1918, the town was part of the Austrian monarchy (compromise of 1867), the chief city of the district with the same name, one of the 78 provinces of Austrian Galicia. During Austrian rule, there was widespread poverty and starvation among local peasants. In 1846, several manor houses were burned in the so-called Galician slaughter. In 1849, Grybow was visited by Emperor Franz Joseph I of Austria, and in the 1860s, the town was visited by painter Artur Grottger, who came here to see his fiancée, Anna Monne. In 1900, Stanislaw Wyspianski and Józef Mehoffer also visited the town.