Japan has been ruled by emperors since antiquity. The sequence, order and dates of the early emperors are almost entirely based on the 8th-century Nihon Shoki, which was meant to retroactively legitimise the Imperial House by dating its foundation further back to the year 660 BC. Emperor Kinmei is often considered the first historical emperor, but the first Japanese ruler supported by historical evidence is actually Emperor Yūryaku, who is mentioned in the 5th-century Inariyama and Eta Funayama Swords. According to Chinese sources, the unification of Japan took place between the 2nd and 3rd centuries.