Arc 21Kaguya Sealed and the War Ends
Yang Ming helped Naruto and Sasuke seal Kaguya, then left them to settle their conflict while he took Hinata to investigate the Hyuga Clan's secret. Naruto defeated Sasuke and the Infinite Tsukuyomi ended, leaving Sasuke ready to atone and Yang Ming at the Hyuga estate.
- Yang Ming fought Kaguya across her dimensions, rescued the others, and created an opening for Naruto and Sasuke to seal her with Six Paths: Planetary Devastation.
- Yang Ming used Space Movement to bring the group out of Kaguya's dimension, and the Six Paths Sage released the summoned Kage and ninja before Madara died and the others vanished.
- Sasuke revealed his plan to control the ninja world, but Yang Ming left with Hinata as Naruto and Sasuke began their final battle at the Valley of the End.
- Naruto and Sasuke fought with their strongest attacks until both lost an arm, and Naruto persuaded Sasuke to admit defeat and accept his friendship.
- Sakura treated Naruto and Sasuke, who formed the Seal of Reconciliation and released the Infinite Tsukuyomi, freeing the people trapped in the trees.
- The Five Kage thanked Naruto and began rebuilding, while Sasuke accepted imprisonment as a chance to atone.
- Yang Ming and Hinata reached the Hyuga estate, where the giant tree vanished and freed the clan members.