The sentence that best identifies why Hitler wrote Mein Kampf is:
He wanted to explain his ideas on the problems and solutions for Germany.
This response captures the main purpose of the book, which was to outline Hitler's ideology and his vision for Germany's future.