The occupation of Greece by the Axis Powers began in April 1941 after Nazi Germany invaded the Kingdom of Greece to assist its ally, Italy, in their ongoing war that had started in October 1940. Following the conquest of Crete, the entirety of Greece was occupied starting in June 1941. The occupation of the mainland lasted until Germany and its ally Bulgaria withdrew under Allied pressure in early October 1944, with Crete and some other Aegean islands being surrendered to the Allies by German garrisons in May and June 1945, after the end of World War II in Europe.
Learn more on Wikipedia