From 1795 to 1915, the Russian Empire ruled over the lands, with brief periods of intercession, e.g. Napoleon's "Grande Armée" in 1812 and the Uprisings of 1831 and 1863. After 1915, Novogrudok was occupied by the Imperial German Army for three years in World War I, by the Second Polish Republic until the Soviet invasion of Poland in 1939. Thereafter, the Soviet Union annexed the area to the Byelorussian SSR. From 1941 to 1944, Novogrudok was occupied by the German Army, thereafter being occupied by the Soviet regime until 1990.