The gradual decline of the Mughal Empire led to quasi-independent states under the Nawabs of Bengal, subsequent to the Maratha invasions of Bengal, and finally the conquest by the British East India Company.