How long was the war?