After the death of his parents, Nagato wandered into the Village of Hidden Rain in search of food, which was in short supply during the ongoing Shinobi World War II. When he was on the verge of starving to death, he was found by his fellow war orphans Yahiko and Konan. They rescued him and became a family of sorts, but could not escape the terrible realities of war. Upset by the incessant deaths, Yahiko vowed one day to rule the world in order to establish peace. This idea was also embraced by Nagato.