Why Did Hitler Go to Prison?

Hitler was found guilty of taking part in the Beer Hall Putsch in 1923. He was sentenced to 5 years in prison, which ended up being in a castle where he could roam the grounds and wear his own clothes.