The British overcame intense guerrilla resistance.