The Treaty of Allahabad was signed in 1765 after the Battle of Buxar. Under this treaty, the Mughal Emperor Shah Alam II granted the Diwani (right to collect revenue) of Bengal, Bihar, and Orissa to the East India Company. Awadh was returned to Nawab Shuja-ud-Daulah on payment of a war indemnity.