In 1679 CE, when Maharaja Jaswant Singh whom Emperor Aurangzeb had posted at Jamrud at the mouth of the Khyber Pass, died at that place, leaving no son to succeed him; his widowed "Ranis" (Queens) at Lahore gave birth to two sons. One died and the other survived to secure the throne of Marwar and to stir up the sentiments of his co-religionists against the Muslim Monarch. The family of the late Raja had left Jamrud without the permission of the emperor and killed an officer at Attock when asked to produce a passport. This was a sufficient ground for incorporating Marwar in the Mughal Empire, or reducing it to a state of dependency under a capable ruler. So the Mughal Emperor Aurangzeb invaded Marwar in 1679. Durgadas Rathore led a rebellion against the Mughals which lasted for 31 years. After the death of Aurangzeb, Durgadas captured Jodhpur and evicted the Mughal garrison from Marwar.