Treaty that ended the war