Who waged a war against British armies