when did germany attack the soviet union despite the non aggression pact between the two countries
Germany launched Operation Barbarossa, the invasion of the Soviet Union, on June 22, 1941. This attack came despite the Molotov-Ribbentrop Pact, a non-aggression treaty signed between Nazi Germany and the Soviet Union in August 1939. The invasion marked a significant turning point in World War II, as it opened up the Eastern Front, which would become one of the largest and deadliest theaters of the war.
Germany, under the leadership of Adolf Hitler, launched a surprise attack on the Soviet Union on June 22, 1941, despite the Molotov-Ribbentrop Pact, a non-aggression treaty between the two countries signed on August 23, 1939.

The Molotov-Ribbentrop Pact was a neutrality agreement between Germany and the Soviet Union, which included a secret protocol dividing Eastern Europe into Soviet and German spheres of influence. The pact was intended to prevent war between the two powers and allow them to focus on their own territorial ambitions.

However, Hitler had long been planning to invade the Soviet Union, and the pact was merely a temporary expedient to buy time and prevent a two-front war while Germany was busy fighting against France and the United Kingdom.

In the spring of 1941, Hitler began to make preparations for Operation Barbarossa, the codename for the invasion of the Soviet Union. He believed that a quick and decisive victory over the Soviet Union would allow Germany to secure the resources and territory needed to defeat the United Kingdom and eventually the United States.

On June 22, 1941, German forces launched a massive surprise attack on the Soviet Union, catching the Red Army off guard and quickly advancing deep into Soviet territory. The Soviet Union suffered heavy losses in the initial stages of the invasion, but eventually rallied and launched a counterattack that would ultimately lead to the defeat of Nazi Germany.

The invasion of the Soviet Union marked a significant turning point