Board Thread:Theories and Speculation/@comment-25302335-20150914182027/@comment-5936871-20150917174706

Both the end of the Manga and The Last give us a new version of the story told by more credible sources than Madara and Obito (who btw read from the tampered version of the tablet). Hagoromo and Hamura fight and defeat the Ten-Tails, they use the Six Paths - Chibaku Tensei to seal it's body into what would become the Moon. While it's chakra is sealed into Hagoromo, making him it's Jinchuriki. Hamura and the rest of the Otsutsuki Clan depart to the Moon to guard the Ten-Tails' body AKA the Gedo Statue. Hagoromo later has Asura and Indra and even later decides to extract the Ten-Tails' chakra from himself and create the nine tailed beast out of it. He then scatters them all across the world and on his deathbed he chooses Asura as his successor to his ninshu.