The forebears of the Asaf Jahi Dynasty came to India from Samarkand, in Central Asia, but the family actually originated from Baghdad. In 1724, the Mughal Governor of the Deccan, Asaf Jah, Nizam ul-Mulk, Qamar ud-din Khan, established himself as an independent ruler of Deccan. Aurangabad was its first capital city, later Hyderabad became the capital and later lent its name to the state he had created. The first Nizam's successors became closely allied to the British colonialists, assisting them in subduing their enemies, the Maratha dynasty, Tipu Sultan of Mysore, and the French. In later years, the Nizam's troops invariably took part in all the main campaigns of the British Indian Army. Large numbers of his troops took part in the First and Second World Wars. These contributions earned for the Nizam unequalled titles and honours from a grateful Emperor. 