 William Hedges, the first governor of East India Company in Bengal, arrived Dhaka on 25 October 1682 and met Shaista Khan.After the Battle of Buxar in 1765, per the Treaty of Allahabad, East India Company was appointed the imperial tax collector of the province Bengal-Bihar-Orissa by the Mughal emperor.The company was still a subject of the Mughal empire.