After the Battle of Buxar, 1764, the Mughals as well as the Nawabs of Bengal lost effective control over the territories then constituting the province of Bengal, which currently comprises the Indian states of West Bengal, Bihar, Jharkhand, Odisha, as also some parts of Bangladesh. The East India Company was accorded the "diwani rights" (right to collect revenue), that is, the right to administer the collection and management of revenues of the province of Bengal, and parts of Oudh, currently comprising a large part of Uttar Pradesh. The diwani rights were legally granted by Shah Alam, who was then ruling sovereign Mughal emperor of Undivided India.