Following the defeat of the Sikhs in the First Anglo-Sikh War in 1845-46 and the Second Anglo-Sikh War in 1849, some of their territories were captured by the British East India Company. The British re-established stability in the wake of ruinous Sikh rule. During the Sepoy Rebellion of 1857, the 4,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.