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.