When they reached Allahabad from Azimabad, Jahandar Shah's military general Syed Abdul Ghaffar Khan Gardezi and 12,000 troops clashed with Abdullah Khan and Abdullah retreated to the Allahabad Fort. However, Gardezi's army fled when they learned about his death. After the defeat, Jahandar Shah sent general Khwaja Ahsan Khan and his son Aazuddin. When they reached Khajwah (present-day Fatehpur district, Uttar Pradesh, India), they learned that Farrukhsiyar was accompanied by Hussain Ali Khan and Abdullah Khan. With Abdullah Khan commanding the vanguard, Farrukhsiyar began the attack. After a night-long artillery fight, Aazuddin and Khwaja Ahsan Khan fled and the camp fell to Farrukhsiyar.