Adolf Hitler rose to power in Germany following World War I. He joined the German Workers' Party in 1919 and transformed it into the Nazi party. Hitler was imprisoned for attempting to overthrow the German government but used his trial to spread his nationalist message. After his release, he wrote Mein Kampf and gained popularity by blaming Jews and communists for Germany's defeat in WWI. Although his Nazi party never won a majority, Hitler was appointed chancellor in 1933 and quickly consolidated power, suspending civil liberties and outlawing other parties to become a dictator.