During the invasion of Poland, which started World War II, in 1939 the town was first captured by the Soviet Union on September 24, 1939. Sejny was severely pillaged and then on 13 October 1939 transferred to Nazi Germany. It remained occupied by the Germans until August 1944.