In 1940, after Germany invaded the Netherlands, Anne and her family couldn't leave the country, so they decided to hide in a warehouse in an attempt to escape the persecution of Jews by the Nazis. For over two years, Anne wrote in her diary with an awareness that was extremely mature for her age. She detailed her experiences and insights while she and her family were in hiding, living in a constant fear of being arrested. Anne Frank's diary is a record of her understanding of the war.