It's interesting that much of what is now Afghanistan was subject to the Mughals. Evidently, Britain was not able to seize that part of their empire.
Britain suffered in the Afghan Wars, IIRC. The map shows the maximum extent of the Moghal Empire, and I think it represents Akbar's time.