In 1573, Akbar (1573–1605), the emperor of the Mughal Empire captured Gujarat (now a state in western India) by defeating Gujarat Sultanate under Muzaffar Shah III. Muzaffar tried to regain the Sultanate in 1584 but failed. Gujarat remained the Mughal province (subah) governed by the viceroys and officers appointed by the Mughal emperors from Delhi. Akbar's foster brother Mirza Aziz Kokaltash was appointed as the subahdar(viceroy) who strengthened Mughal hold over the region. The nobles of former Sultanate continued to resist and rebel during the reign of the next emperor Jehangir (1605–1627) but Kokaltash and his successor subahdars subdued them. Jehangir also permitted the British East India Company to establish factories in Surat and elsewhere in Gujarat. The next emperor Shah Jahan (16