Anne Frank received her diary as a birthday gift for her 12th birthday on June 12, 1942. She began writing in it almost immediately, and it became the famous record of her experiences during World War II. The Frank family went into hiding shortly after, in July 1942.