Ligeza founded a wooden parish church with a bell tower (1630), a hospital for the poor, and a wooden town hall (1636). After a Crimean Tatars raid (1624), the town was surrounded by a protective rampart with several towers, whose traces are still visible in some spots. Mikolaj Ligeza died in 1637, and after his death, Głowów, together with Rzeszów and Sedziszow Malopolski was captured by the Zaslawski family. Soon afterwards, it passed into the hands of the Lubomirski family, which owned it for 150 years, and changed the name to Głogów. The town was burned down by the soldiers of George II Rakoczi, during the Swedish invasion of Poland. Once again, it was looted and destroyed during the Great Northern War. In 1725 Urszula Lubomirska built a small palace, together with an extensive garden. In 1766, a new church together with a monastery was completed, together with a town hall (the monastery burned in 1803). Głogów prospered in the second half of the 18th century. Until 1772 (see Partitions of Poland) it belonged to Lesser Poland’s Sandomierz Voivodeship, and in 1772 - 1918, it was part of Austrian province of Galicia. The town was famous in the region for its fairs  In the 19th century, Głogów remained a local center of commerce and administration, with a court, a post office, notary public, pharmacy and a school. The residents of the town actively supported patriotic movements, with some of them joining the November Uprising and the January Uprising, which took place in the Russian-controlled Congress Poland. Most of the buildings were made of wood, which resulted in frequent fires. To prevent them, the Firefigter Volunteers was created in 1878. In 1903, local office of the Gymnastic Association Sokol was opened here, and its members later joined the Polish Legions of Józef Piłsudski. In the Second Polish Republic, Głogów belonged to Lwow Voivodeship, and in the late 1930s, with the Central Industrial Area, the town’s importance was reduced at the expense of the quickly growing Rzeszow. As a result, Głogów turned into Rzeszow’s commuter town.