With Nagato's eventual death, Tobi, while disguised as one of Konoha's founding fathers Madara Uchiha, announces that he wants to obtain all nine of the tailed beasts in order to perform an illusion powerful enough to control all of humanity, in an effort to create supposedly world peace. The leaders of the five ninja villages refuse to aid him and instead join forces to confront Tobi and his allies. This results in a fourth great ninja war between the unified armies of the Five Great Countries (collectively known as the Allied Shinobi Forces) and Akatsuki's forces of zombie-like ninjas. Naruto, and Killer Bee, the host of the Eight-Tails, head for the battlefield refusing to sit back as instructed. During the conflict, it is revealed that Tobi is actually Obito Uchiha, Kakashi's former teammate who was thought to be dead, but he was saved by the real Madara and has been working with him ever since. As Sasuke learns the history of Konoha, including the circumstances that led to his clan's downfall, he decides to protect the village and rejoins Naruto and Sakura to stop Madara and Obito's plans, which is to unleash the Ten-Tails. However, Madara's body ends up possessed by Kaguya ?tsutsuki, an ancient princess that was the embodiment of the Ten-Tails and progenitor of all chakra, who intends to subdue all of mankind, and a reformed Obito sacrifices himself to help Team 7 stop her. Once Kaguya is sealed, Madara dies as well, but Sasuke takes advantage of the situation and takes control all the Tailed Beasts to realize his true goal of ending the current village system. Naruto confronts Sasuke to dissuade him, and after they almost kill each other in a final battle, Sasuke admits defeat and reforms. After the war, Kakashi is chosen to become the Sixth Hokage and pardons Sasuke of his crimes. Years later, Kakashi steps down and Naruto becomes the Seventh Hokage, while he and his friends raise the next generation of ninjas from the village.