Tensions within Germany first emerged with the loss of World War 1, where afterwards they were held responsible for the entire war.
As a result of Germany being blamed for the war, the government was forced to pay $33 billion. The Great Depression did not help Germany either as it resulted in almost a third of the country being unemployed and the national currency being almost worthless.
Hitler, like many Germans of the time, despised the terrible situation the country had plunged into. Hitler preached about how Jews and other ethnic minorities were responsible for Germany losing World War 1. He later became the leader of the Nazis, where he also preached that only the Nazis could bring economic prosperity back to Germany.
In an attempt to overthrow the Bavarian government, an area in Germany, Hitler was arrested and sentenced to five years in prison. During this time he worked on his book, Mein Kampf, while other members of the Nazi party worked on recruiting more members and spreading the word of the "injustices" that Hitler had gone through.
As the depression worsened for Germany, many extremists groups began to gain further traction and voter support. In 1932, four new governments were created but collapsed in an attempt to turn the country around.
As a result of Germany's worsening political situation, in an attempt to keep the country together and prevent a communist takeover, the President of Germany appointed Hitler as Chancellor. Afterwards the Nazis burned down the German Parliament and blamed the communists, resulting in Hitler having unprecedented power in the country.