The Mughal Emperor Aurangzeb died in 1707. He was succeeded by Bahadur Shah I, but there was a general decline in central control over the empire during the tenure of Jahandar Shah and later emperors. Nizam-ul-Mulk established Hyderabad as an independent kingdom. A power struggle ensued after his death between his son, Nasir Jung, and his grandson, Muzaffar Jung, which soon involved foreign powers eager to expand their influence. France aided Muzaffar Jung while Britain aided Nasir Jung. Several erstwhile Mughal territories were autonomous such as the Carnatic, ruled by Nawab Dost Ali Khan, despite being under the legal purview of the Nizam of Hyderabad. French and British support soon became intertwined with the affairs of the Nawab. Dost Ali's death sparked a power struggle between his son-in-law Chanda Sahib, supported by the French, and Muhammad Ali, supported by the British.