Aurangazeb, the Mughal emperor, invaded Golconda in A.D.1687 and annexed it to the Mughal empire. When this was done, Golconda became part of the Deccan Subha and a Nazim was appointed as an agent of the Mughal emperor. Thus, for about a period of 35 years it was ruled by Nazims, the last one being Mubariz Khan.
The period between A.D.1687 and A.D.1724 saw several sea changes. Aurangazeb died in A.D.1707. The administrative machinery of the Mughal imperial regime began to crumble and the central authority manned by successive feeble rulers gradually lost control over the provinces. In Deccan, situated far away from the capital, the state of affairs was still worse. This anarchy contributed much in giving a new turn to Indian history. It enabled two foreign mercantile companies to consolidate themselves as political powers capable of subsequently playing decisive roles in shaping the destiny of the nation. They were the East India Company of England and the Compagnie de Inde Orientale of France. These trading companies had their headquarters at Madras and Pondicherry respectively and both had trade centres at Machilipatnam. They were waiting for suitable opportunities to expand their areas of control and so, did not hesitate to take sides in the local skirmishes.