This story is described first-hand at the beginning of the Kojiki, the first book written in Japan (712), and in the Nihon Shoki (720). Both form the literary basis of Japanese mythology and Shinto; however, the story differs in some aspects between these works, with the most accepted for the Japanese being the one of the Kojiki.[citation needed]