17th century, and built a synagogue and a cemetery. In the years 1711–1712, the bubonic plague swept through the town and wreaked havoc upon its population. In 1792, by the initiative of the city's representative in the Great Sejm, Józef Dominik Kossakowski, King Stanisław August Poniatowski renewed the town's municipal rights and gave it its current coat of arms. 18th and 19th centuries In 1795, the town, along with most of Lithuania, was annexed by Russia, becoming a part of the Vilna Governorate. In 1812 the Battle of Deltuva, between the Russian and French armies, occurred not far from Ukmergė; Napoleon's army raided the town during the French invasion of Russia. During the November Uprising in 1831, the city remained in the hands of rebel elements for several months. In 1843, the town became a part of the newly established Kovno Governorate. In 1863, the city participated in the January Uprising against Russia. In 1876 a match factory was established in Ukmergė. In 1877 a fire again ravaged the town. The future president of Lithuania, Antanas Smetona, was born in Užulėnis near Ukmergė, and was educated in the local school. In 1882 a printing-house was opened. In 1899 thirteen people were punished for distributing books written in the Lithuanian language, which was prohibited at that time. 20th century In 1918, after Lithuania declared its independence, the city's name was changed from Vilkmergė to Ukmergė. In 1919 Bolshevik forces occupied the city during the Lithuanian–Soviet War, but it was soon liberated by the Lithuanian army led by Jonas Variakojis. Over five hundred Bolshevik prisoners were taken during the Battle of Ukmergė. An iron foundry was established in the same year. In 1920, the Lithuanian army stopped Polish incursions into the rest of the country, after a series of battles that were waged to establish borders between the two newly re-established countries. An electric plant, a printing house and 120 other small businesses were opened. The city had five newspapers until 1939. In 1930, a monument named Lituania Restituta was erected to commemorate the first decade of restored Lithuanian independence. A Polish high school also operated in Ukmergė during the interbellum. In 1940, after the Soviet occupation of Lithuania, deportations of people from the town began. When the Germans attacked the Soviet Union and its occupied territories, on June 22, 1941, the retreating Soviets gave instructions to their operatives to kill some