In 1738, Nader Shah conquered Kandahar, the last outpost of the Hotaki dynasty. His thoughts now turned to the Mughal Empire of India. This once powerful Muslim state to the east was falling apart as the nobles became increasingly disobedient and local opponents such as the Sikhs and Hindu Marathas of the Maratha Empire were expanding upon its territory. Its ruler Muhammad Shah was powerless to reverse this disintegration. Nader asked for the Afghan rebels to be handed over, but the Mughal emperor refused. Nader used the pretext of his Afghan enemies taking refuge in India to cross the border and invade the militarily weak but still extremely wealthy far eastern empire, and in a brilliant campaign against the governor of Peshawar he took a small contingent of his forces on a daunting flank march through nearly impassable mountain passes and took the enemy forces positioned at the mouth of the Khyber Pass completely by surprise, utterly beating them despite being outnumbered two-to-one. This led to the capture of Ghazni, Kabul, Peshawar, Sindh and Lahore. As he moved into the Mughal territories, he was loyally accompanied by his Georgian subject and future king of eastern Georgia, Erekle II, who led a Georgian contingent as a military commander as part of Nader's force. Following the prior defeat of Mughal forces, he then advanced deeper into India, crossing the river Indus before the end of year. The news of the Iranian army's swift and decisive successes against the northern vassal states of the Mughal empire caused much consternation in Delhi, prompting the Mughal ruler, Muhammad Shah, to raise an army of some 300,000 men and march to confront Nader Shah.