Twice, Great Britain invaded and tried to occupy Afghanistan, in order to block out the Russians, but each time the Afghans drove the British back out. The first Anglo-Afghan war ended in 1841 with the Afghans massacring the entire British community and its army as it tried to flee the country. (A British army came back briefly, however, to set fire to the Grand Bazaar in Kabul and burn up everyone in it.)