As Naruto distracts Kaguya with shadow clones, Kakashi renders Kaguya's right arm useless with Kamui Lightning Cutter. Sasuke switches place with one of Naruto's clones, and appears next to Kaguya as well. Though she tries to escape, Kaguya is knocked down by Sakura with the punch also knocking one of Kaguya's horns off in the process, allowing Naruto and Sasuke to touch her with their sun and moon markings, preparing to seal away the Rabbit Goddess once again. Immediately, Naruto and Sasuke begin the ultimate fūinjutsu they obtained from Hagoromo: the Six Paths - Chibaku Tensei. After this the Tailed Beasts being freed.
As Kaguya questions how she, the ancestor of all chakra, could be defeated by mere fragments that were once part of herself, her third eye is obscured by the moon, and then followed by the sun. As the sun and moon tattoos disappear from the palms of Naruto and Sasuke's paws, they reappear on Hagoromo's paws, symbolising that the technique was a success. As Kaguya reverts back to the Demonic Statue of the Outer Path, the tailed beasts get out of her, while the remainder of Kaguya's chakra ejects Madara Uchiha before being encased within a giant satellite produced by the Chibaku Tensei. Though he intends to revive her again albeit at some time in the future, Black Zetsu is found by Naruto, who chastises him for his false beliefs that he was the one who created the shinobi world, and proceeds to throw him into the satellite, sealing away both enemies. Joining up with his comrades, Naruto and Team 7 realise they are trapped within Kaguya's dimension, with no other way to return him. Suddenly, Team 7, the tailed beasts, and Madara are all summoned back to earth by Hagoromo, the four Hokage, and all of the previous Kage, whom Hagoromo managed to recall from the pure world. Hagoromo faces Team 7 and thanks them for saving the world.
NSUN4 Battle against Kaguya