The autonomy of the Latvian Orthodox Church was ended abruptly by the Soviet occupation of Latvia in 1940, which was followed by the German Nazi occupation from 1941 to 1944, and a second Soviet annexation lasting from 1944 to 1991. The church suffered oppression during this period, as did organized religion throughout the Soviet Union, though this was partly mitigated from 1943 to 1948 (due to the support of the Church during World War II) and in the last years of the Soviet Union under Mikhail Gorbachev.[citation needed]