The book was written by Hitler following the failed Munich Putsch
in November 1923 and was first published in July 1925.
Hitler too realised dictatorship was best reached through the ballot box when he wrote Mein Kampf in a castle prison after the 1923 Munich Putsch
He joined Hitler in 1923, took part in the Munich putsch
, and was elected as a Nazi deputy to the Reichstag in 1924.