Khanate of Bukhara
In 1506 Uzbeks entered Balkh under the command of Muhammad Shaybani. They were briefly expelled by the Safavids in 1510. Babur ruled Balkh between 1511 and 1512 as a vassal of the Persian Safavids. But he was defeated twice by the Khanate of Bukhara and was forced to retire to Kabul. Balkh was ruled by Bukhara except for Safavid rule between 1598 and 1601.