The Treaty of Allahabad, signed in 1765 after the Battle of Buxar, granted the East India Company the Diwani (right to collect revenue and administer civil justice) of Bengal, Bihar, and Orissa from the Mughal Emperor Shah Alam II.