While in prison after the failed Beer Hall Putsch of , Hitler wrote Mein Kampf, which laid out his plan for transforming German society into one based on race.