Adolf Hitler rose to power in Germany after World War I. As a young man, he was rejected from art school twice and became homeless in Vienna. He was inspired by German nationalism and anti-Semitism. During World War I, he fought for Germany and was decorated for his service. After the war, he joined the German Workers' Party and transformed it into the Nazi party. He was imprisoned after a failed coup but used his time to write Mein Kampf and spread his ideology. He then rose legally to power by gaining support and being appointed chancellor in 1933.