Board Thread:Theories and Speculation/@comment-45173656-20200306100136/@comment-9782468-20200306161838

Hagoromo and Hamura won when they sealed the Juubi into Hagoromo himself. From there, Hagoromo eventually separated the 9 Bijuu out from the Gedo, which originally remained in his own body and allowed him to survive extraction. Then on his deathbed, he sealed the Gedo into the moon.