In 1923, Hitler got together several hundred other members of the Nazi Party and tried to take over the Weimar Republic government (1918–34) in the Beer Hall Putsch. The coup failed. The government killed 13 of his men (the 13 dead men were later declared saints in Nazi ideology). They also put Hitler in the Landsberg Prison. They said that he would stay in prison for five years, but they let him leave after nine months.