Röhm took a part in the Beer Hall Putsch in 1923. The Nazi Party tried to overthrow the government, but failed. Röhm was arrested and charged with high treason. The judges decided he was guilty on 1 April 1924. Röhm went to prison for five months and lost his job in the army. Following the court trial, both the Nazi Party and the Sturmabteilung became illegal.