sentences:  British troops were first stationed at Allahabad fort in 1765 as part of the Treaty of Allahabad signed by Lord Robert Clive, Mughal emperor Shah Alam II, and Awadh's Nawab Shuja-ud-Daula.The combined forces of Bengal's Nawab Mir Qasim, Shuja and Shah Alam were defeated by the English at Buxar in October 1764 and at Kora in May 1765.Alam who was abandoned by Shuja after the defeats, surrendered to the English and was lodged at the fort, as they captured Allahabad, Benares and Chunar in his name.