The first Nizam ruled in place of the Mughal emperors. After Aurangzeb died, the Mughal empire collapsed. So, the Nizams created an independent kingdom (Hyderabad). When the British got power over India, the Nizams continued to rule Kingdom of Hyderabad after coming into an understanding with the British. The Nizams had power in Kingdom of Hyderabad until 17 September 1948. Hyderabad then became part of the new Indian Union.