Answer in Details
In the "Shiva Purana" and other texts, Lord Shiva emphasizes the importance of inner transformation over external conflict. Wars, whether internal or external, end when ignorance is dispelled by knowledge and when people embrace dharma (righteousness), non-violence, and devotion.
Therefore, from Lord Shiva’s perspective, war ends when humanity collectively transcends anger, greed, and delusion, and embraces spiritual wisdom and harmony.