According to the earliest official accounts , the eighth-century Kojiki ( Record of Ancient Matters ) and Nihon-shoki ( Chronicles of Japan ) , the islands of Japan were born of a marriage between the god Izanagi and his sister Izanami .
Japan was created by volcanic processes , and all myths and gods should be disregarded .