The film begins in 1857, when a large part of India was under the control of the British East India Company. Mangal Pandey (Aamir Khan) is a sepoy, a soldier of Indian origin, in the army of the East India Company. Pandey is fighting in the Anglo-Afghan Wars and saves the life of his British commanding officer, William Gordon (portrayed by Toby Stephens).