How many years did the war last?