Afghanistan has been the center of competing foreign powers for more than a century. Between 1839 and 1919, the British fought three wars in Afghanistan, each lasting no more than a few months or years (although the last war was more like a skirmish). During the first two wars, the British Empire wanted to secure the country against Russia’s influence, says Shah Mahmoud Hanifi, a professor of Middle Eastern and South Asian history at James Madison University. During the third, it wanted to secure Afghanistan against the Ottoman Empire.