Glatz became part of the German Empire in 1871 during the Prussian-led unification of Germany. The restrictions in the city's growth were not withdrawn until 1877, after which the town began another period of rapid modernisation and expansion. Some of the forts were demolished, several new bridges were built, and new investments started to arrive in Glatz. The town was connected to the rest of Germany by a railway. In 1864 the gas works were built and in 1880 an electric plant was opened. The buildings along the main streets were rebuilt in Neo-Gothic and Neo-Renaissance style while the city walls with all their gates were demolished. In 1884–1885 was built a new synagogue on the Grünestraße Street designed by the Breslau architect .