Yeah, he wrote it in an Austrian prison called Landsberg eam Lech starting on August 1, 1924.
I've actually taken several notes in the book that really scare me as for as their relevance to modern times. For example, he talked of using people's religion to start a war with no means; something people have claimed that President Bush has done, and something the Arabs have been doing for longer than any of us could possibly remember.