In the spring of 1839, the British invaded Afghanistan for the first time. Led by lancers in scarlet cloaks and plumed shakos, nearly 20,000 British and East India Company troops poured through the high mountain passes and re-established on the throne Shah Shuja ul-Mulk.On the way in, the British faced little resistance. But after two years of occupation, the Afghan people rose in answer to the call for jihad and the country exploded into violent rebellion. The First Anglo-Afghan War ended in Britain's greatest military humiliation of the nineteenth century: an entire army of the then most powerful nation in the world ambushed in retreat and utterly routed by poorly equipped tribesmen.