During the First War of Independence, from 1857 to 1858, Begum Hazrat Mahal's band of supporters, led by Raja Jailal Singh, rebelled against the forces of the British East India Company; later, they seized control of Lucknow and she declared her son, Birjis Qadra, as the ruler (Wali) of Oudh. When the forces under the command of the British re-captured Lucknow and most of Oudh, she was forced to retreat. Hazrat Mahal worked in association with Nana Saheb, but later joined the Maulavi of Faizabad in the attack on Shahjahanpur.