Albania was occupied throughout World War II. First by the Italians until their surrender in 1943. When they withdrew, Nazi Germany (who had defeated Greece and Yugoslavia earlier) took over in September. Throughout the occupation three resistance groups were active: the National Front, the Legality Party, and the Communist Party (which had formed in 1941). With the withdrawal of the Germans in 1944, the Communist party seized control on November 29th. Enver Hoxha was secretary-general of the party and through his position took leadership. In 1946 the country became officially the People's Republic of Albania, and in 1976 the People's Socialist Republic of Albania.