The Diwani of Bengal, Bihar, and Orissa was granted to the East India Company by Shah Alam II in 1765 after the Battle of Buxar. This gave the British the right to collect revenue from these provinces. Shah Alam II was the Mughal Emperor at that time.