Kojiki or Furukotofumi (古事記), also called in English the Records of Ancient Matters, is the oldest book known in Japan. It was written 712 CE, and dedicated to Empress Gemmei. The Kojiki is a book about Japanese mythology (Shinto), legends, songs, genealogies, oral traditions, and semi-historical accounts down to 641 BCE. The book mixes the legends of first emperor of Japan and several others with stories about the gods. Therefore, it is difficult to know which parts of the Kojiki are real and which parts are legend. According to legend, all the emperors of Japan are descended from Amaterasu, the sun goddess.