The First Anglo-Afghan War (1839–1842) led to the British force taking and occupying Kabul. After this, due to strategic errors by Elphinstone, the British force was annihilated by Afghan forces under the command Akbar Khan somewhere at the Kabul-Jalalabad Road, near the city of Jalalabad. After this defeat, the British-Indian forces returned to Afghanistan on a special mission to rescue their prisoners of war (POWs) and afterward withdrew until coming back in order to commence the Second Anglo-Afghan War.