The context for how the actual Mein Kampf text was written was far more interesting than the book itself. It’s very much a product of its time and you can tell by looking at what was happening in Germany and the world in general. Hitler’s main purpose in writing this was to outline his core philosophy and beliefs. After WWI, Germany took most of the blame for what had just transpired despite not starting the conflict. Germany lost all of their overseas colonies, was heavily demilitarized, and was forced to pay heavy reparations to the Allies. As a result, Germany’s economy was devastated and unemployment was at an all-time high. This combined with the rise of antisemitism and other texts such as the Elders of Zion created the perfect storm for Hitler to create “Mein Kampf”. There was a widespread belief that Jews were in large part the main cause of WW1 and Hitler was one of the main advocates of this belief. He began to write the text after he was thrown in prison after an attempt to overthrow the current German government. Before this, Hitler had served in the German military and headed the Propaganda Department for the German Workers Party. When Mein Kampf was initially published, it did not explode in popularity out of the gate. At first, it only sold about 10000 copies. But it is important to keep in mind that when the Nazi party grew, Mein Kampf also grew. In 1928, the Nazis only held around 12 seats in the German parliament out of 500. Then compare that to the following election in 1930 when they captured 107 seats and then in 1932 they gained 230 seats and became the largest party in Germany. When Hitler was made Chancellor, he became a multimillionaire, and by the end of 1944 over 12 million copies were sold.