The result was a costly but effective military machine serving British interests.