The NSDAP was a far-right fascist political party which arose during the social and financial upheavals that occurred following the end of World War I.[172] The NSDAP remained small and marginalised, receiving 2.6% of the federal vote in 1928, prior to the onset of the Great Depression in 1929.[173] By 1930 the NSDAP won 18.3% of the federal vote, making it the Reichstag's second largest political party.[174] While in prison after the failed Beer Hall Putsch of 1923, Hitler wrote Mein Kampf, which laid out his plan for transforming German society into one based on race.[175] Nazi ideology brought together elements of antisemitism, racial hygiene, and eugenics, and combined them with pan-Germanism and territorial expansionism with the goal of obtaining more Lebensraum for the Germanic people.[176] The regime attempted to obtain this new territory by attacking Poland and the Soviet Union, intending to deport or kill the Jews and Slavs living there, who were viewed as being inferior to the Aryan master race and part of a Jewish-Bolshevik conspiracy.[177][178] The Nazi regime believed that only Germany could defeat the forces of Bolshevism and save humanity from world domination by International Jewry.[179] Other people deemed life unworthy of life by the Nazis included the mentally and physically disabled, Romani people, homosexuals, Jehovah's Witnesses, and social misfits.[180][181]