Prosperity returned to the town in the mid-19th century, when it was linked to the world through the Lemberg-Czernowitz railroad. In 1848 in Kolomyia was built a public library which was one of the first in eastern Galicia. In 1861 there was opened a gymnasium where studied among others Petro Kozlaniuk, Vasyl Stefanyk, Marko Cheremshyna. By 1882 the city had almost 24,000 inhabitants, including roughly 12,000 Jews, 6,000 Ruthenians, and 4,000 Poles. Until the end of that century, commerce attracted even more inhabitants from all over Galicia. There were established publishers and print houses. Moreover, a new Jesuit Catholic church was built in Kolomyia, as it was called by German authorities, along with a Lutheran church built in 1874. By 1901 the number of inhabitants grew to 34,188, approximately half of them Jews.