The Mughal–Safavid War of 1649–1653 was fought between the Mughal and Safavid empires in the territory of modern Afghanistan. While the Mughals were at war with the Janid Uzbeks, the Safavid army captured the fortress city of Kandahar and other strategic cities that controlled the region. The Mughals attempted to regain the city, but their efforts were proven unsuccessful. Background The Safavids had territorial claims over Kandahar since the reign of Shah Tahmasp. The overthrow of Humayun, the Mughal Emperor, is known to have gained the support of Shah Tahmasp, in return for his permission to allow the Safavids to capture Kandahar. Subsequently, conflicts emerged in the region during the reign of another Mughal emperor, Jahangir. Since 1638, when the Kurdish turncoat Ali Mardan Khan handed Kandahar over to Shah Jahan, both Kabul and Kandahar were under Mughal control. It was considered vital for the Mughal Empire that the twin 'gateway-cities' to Hindustan, i.e. Kabul and Kandahar, be brought under Mughal rule, for two primary reasons. Firstly, the Mughal Empire in India was often viewed by them as a painfully small compensation for the loss of their ancient capital – Samarkand – which they had been driven out of by the Uzbeks. Beyond the internal administrative agendas, the Mughals always kept it a priority to expand the western frontier of the empire in the sentiment of reconquista. Secondly, Central Asian trade provided the Mughals with warhorses, without which not only the military forces would be incapacitated, but could also potentially spark tribal revolts and foreign invasions. Kandahar in particular was at the crossroads of a number of major commercial trade routes in Central Asia. The two cities were thus the subject of deep strategic concern. In February 1646, Shah Jahan dispatched an army of 60,000 to Kabul, and thence to Badakshan and Balkh, with his son Murad Baksh as the commander-in-chief. This was done in support of Nazr Muhammad and his son, Abd al-Aziz, against the Toqai-Timurid ruler of Balkh. However, Nazr Muhammad and Abd al-Aziz betrayed the Mughals after the end of the campaign, and fled to Isfahan. The subsequent Balkh campaign in 1647 against them was led by Aurangzeb, and cost the Mughal empire 20 million rupees along with the recently acquired Balkh and Badakshan. In 1639, the armies of Shah Safi of Persia captured Bamyan and it appeared that they would attack Kandahar next. In 1646, Shah