The British Empire once invaded Afghanistan to stop a phantom Russian threat.
In 1838, British officials feared a Russian invasion of India via Afghanistan. They launched a massive military campaign to install a puppet ruler, only to find their intelligence was flawed and their presence deeply unwelcome. The resulting occupation ended in one of the most catastrophic retreats in British military history.
The First Anglo-Afghan War (1838–1842) was a centerpiece of the 'Great Game,' a 19th-century geopolitical rivalry between Britain and Russia. British leaders in India, particularly Lord Auckland, became convinced that the Afghan ruler Dost Mohammad Khan was aligning with Russia. Despite evidence that Dost Mohammad actually sought a British alliance to counter Sikh expansion, the British ignored his overtures. Driven by the fear of Russian influence, they decided to replace him with the exiled Shah Shuja Durrani, a former ruler who had lived in British-funded exile since 1818.
The 'Grand Army of the Indus'—a massive force of British and Indian troops accompanied by 38,000 camp followers—invaded in 1838. They captured Kandahar and the fortress of Ghazni by 1839, successfully installing Shuja in Kabul. However, the occupation was doomed by cultural arrogance and strategic incompetence. British officials, including the envoy William Hay Macnaghten, lived in luxury while cutting subsidies to local tribal leaders. The British military command, led by the ailing Major-General William Elphinstone, moved troops into a poorly positioned, indefensible cantonment outside Kabul, leaving the secure Bala Hissar fortress behind.
Resentment toward the foreign occupation boiled over into a full-scale uprising. After Macnaghten was killed during negotiations with Dost Mohammad's son, Muhammad Akbar Khan, the British were forced to negotiate a withdrawal. The retreat in January 1842 turned into a massacre, with nearly the entire force destroyed by Afghan tribesmen. While Britain later launched an 'Army of Retribution' to reclaim prisoners and restore honor, the war ultimately achieved little. By 1843, Dost Mohammad was restored to the throne, and the British had learned the hard way that their attempt to turn Afghanistan into a stable buffer state was a costly, ill-conceived failure.
Source: First Anglo-Afghan War