The Mughal Empire was left in pieces, ruled in part by local princes - most of whom had sworn their loyalty to the East India Company to keep some power.