sentences:  In 1765, the combined forces of the Nawab of Awadh and the Mughal emperor Shah Alam II lost the Battle of Buxar to the British.Although the British did not take over their states at that time, they established a garrison at Fort Allahabad, understanding its strategic position as the gateway to the northwest.Governor General Warren Hastings later took Allahabad from Shah Alam and gave it to Awadh, alleging that he had placed himself in the power of the Marathas.