He was appointed the Subahdar (governor) of Avadh in 1722 and gradually asserted his independence from the weakening Mughal Empire, though he maintained nominal allegiance.