Following the defeat of the Sikh's in the Second Anglo-Sikh War in 1849, territories in the Punjab were also captured by British East India company. During the Sepoy Rebellion of 1857, the 40,000 members of the native garrison were disarmed without bloodshed; the absence of brutality meant that Peshawar was not affected by the widespread devastation that was experienced throughout the rest of British India and local chieftains sided with the British after the incident. British control remained confined within the city walls as vast regions of the Frontier province outside the city were claimed by the Kingdom of Afghanistan. The vast mountainous areas outside of the city were mapped out only in 1893 by Sir Mortimer Durand, foreign secretary of the British Indian government, who collaboratively demarcated the boundary of British-controlled areas with the Afghan ruler at the time, Abdur Rahman Khan.