Yamata no Orochi was a monster passed down through the generations in Japanese mythology and the Naruto World. In mythology, it was the embodiment of the floods and water disasters that plagued the Izumo region. Its eyes were like red suns on the horizon, and it had nine heads and eight tails. Its immense body stretched across the sky, large enough to fill eight valleys or hills.
The character "岐" meant branching. Many people believed that Yamata no Orochi was a great snake with eight heads, but that was actually wrong. Eight branches at the neck meant nine heads, so "eight-branched, nine-headed" was the description closest to the mythological accounts.
Though the enormous skeleton before Yuehua Ai had eight heads and a single tail, it still matched those legendary accounts in many respects.
In ancient times, Japan had belonged to a branch of Huaxia, and many of their myths and legends contained remarkably similar accounts.
According to the Classic of Mountains and Seas, Xiangliu, a strange beast that appeared in ancient Huaxia, was also a nine-headed serpent. Wherever it went, floods swept through, the land turned to marsh, and the people were left destitute. The Yellow Emperor cut off one of its heads with the Xuanyuan Sword, after which it fled overseas. From then on, the nine-headed serpent had eight heads. If it had fled to the area where the Land of Izumo lay, that would explain why Yamata no Orochi was said to have nine heads but actually had eight.
In mythological accounts, Yamata no Orochi ravaged the Land of Izumo until Susanoo, who had been banished from Takamagahara, encountered it and killed it with a sword. The sword Susanoo wore in his battle against Yamata no Orochi was later called Ame no Habakiri, or the Heaven Feather-Feather Cutter.