 Wars of the 17th century, such as the Swedish invasion of Poland, devastated Ryglice.In 1656, a skirmish between Polish and Swedish soldiers took place here, after which the local stream was called "Szwedka" (literally meaning Swede).Following the Partitions of Poland, Ryglice was annexed by the Habsburg Empire, as part of Galicia (1772–1918).