There are a good number of reasons why the British were able to do so which are given below:
Disunity among Indian princely states.
Superiority over other colonial powers.
Doctrine of Lapse
9.5m questions
12.2m answers