The Mughal Emperor Shah Jahan fruitlessly fought them there for several years in the 1640s. Nevertheless, Balkh was ruled by the Mughal Empire from 1641 and turned into a subah (imperial top-level province) in 1646 by Shah Jahan, only to be lost in 1647, just like the neighboring Badakhshan Subah. Balkh was the government seat of Aurangzeb in his youth. In 1736 it was conquered by Nader Shah. After his assassination, local Uzbek Hadji Khan declared the independence of Balkh in 1747, but he submitted to Bukhara in 1748.