During the war, Yahiko, Nagato, and Konan witnessed the horrors of war and decided that they would one day create a world without war and pain. They formed the Akatsuki, an organization dedicated to achieving peace through any means necessary.
Initially, the Akatsuki was a small organization that focused on helping small villages and countries that had been affected by war. However, as the organization grew in power and influence, it began to attract the attention of the larger shinobi villages. The villages began to see the Akatsuki as a threat, and they began to take action against the organization.
As a result of the pressure from the villages, the Akatsuki began to change. It became more militarized, and it began to focus on obtaining power rather than achieving peace. The organization began to recruit S-rank criminals, and it became increasingly ruthless in its methods.
Eventually, the Akatsuki was defeated by Naruto Uzumaki and his friends, and its members were scattered throughout the world. However, the legacy of the Akatsuki continues to live on, and it remains a symbol of the dangers of extremism.