The German people wanted a solution to the problem and looked to the Nazis as an alternative to mainstream parties, and they seemed to have answers.
II. Mein Kampf.
Following the Munich Putsch, Hitler went on trial in 1924. He denied treason and instead claimed he was attempting to restore Germany, attacking Weimar. The judges were sympathetic and sentenced him to 5 years in Landsberg prison, where he only ended up serving 9 months. He was treated well and given access to mail and books. Having a lot of time alone in prison gave him a lot of thinking time, and during this time he began to think about how he would get into power. He wrote his autobiography Mein Kampf (My Struggle) during his prison service, which outlined his plans and intentions about how he was going to come to power.
III. Enabling Act.
In order to gain a majority vote for the Nazis, Hitler called an election for March 5th 1933 so that he could change the constitution. A week before the election, the Communists were thought to have been behind the Reichstag Fire, which led to Hitler signing the Decree for the Protection of People and State to allow him to imprison large numbers of Communists and ban them from campaigning to give the Nazis a huge advantage for the election. Despite winning 288 seats in the election, the Nazis still didn't have a majority, even after forming a coalition with the National Party, so Hitler passed the Enabling Act, which became the cornerstone of his dictatorship. This allowed him to rule independently of the Reichstag for 4 years. To get the act passed, Hitler used the SA to intimidate members of parliament when they went to vote, he discounted Communists and Communist votes, he counted absentees as a vote in favour and made promises to the Catholic party which he did not intend to carry through. Using the act, Hitler banned the Communist party, before banning the formation of all other parties, banned trade unions and outlawed strikes, founded concentration camps and abolished the state government.