In the mid-18th century the town was annexed by Prussia. During the Napoleonic Wars, the town was captured by Bavarians, the French and Prussians. In 1813, in the baroque palace of the House of Hatzfeld, there was a meeting of the Prussian king Frederick William III of the Russian Tsar Alexander I, in which the Trachenberg Plan was agreed on, to avoid major battles in the struggle with Napoleon Bonaparte. In the 19th century, many Jews settled in the town (then called "Trach(t)enberg"), however, from the late 19th century, they emigrated, mainly to the west, and in 1939 there were no more Jews in the town. The 19th-century synagogue was destroyed by the Germans during the "Kristallnacht" in 1938.