What is the Purpose of War?

The purpose of war is supposed to be a last resort means to settle a conflict. This is how conflicts that are unable to be fixed through diplomacy are settled.