According to the records of the reign of Empress Suiko in the "Nihonshoki" (Chronicles of Japan), in the summer of the seventh year of her reign (599 C.E.), a large earthquake struck the center of Yamato and an order was issued to offer worship to 'the deity of earthquakes' (Nainokami).
『日本書紀』の推古天皇紀に、推古天皇7年（599年）夏に大和地方を中心とする大地震があり、その後、諸国に「地震神」（なゐのかみ）を祀らせたとある。