Episode: 24 - "The Hero of the Hidden Leaf"
Deciding to believe in Naruto, Nagato uses the Gedo Art: Rinne Rebirth jutsu, expending the last of his chakra, and thus giving his life, to revive every person in the village who died in the attack, saying that it's the least he can do. With Nagato dead, Konan leaves Akatsuki, taking Nagato and Pain's God Realm (who is actually the body of Yahiko) with her, parting with Naruto saying that since Nagato believed in him to achieve true peace, she will as well. As Naruto returns to the Leaf, he is astonished to find the entire village awaiting his return, hailing him as a true hero. After all these years, Naruto has finally received the acknowledgment he's always wanted.