Qaim Khan fell into the trap laid for him and set out to the conquest of his new territories with a large force. At Qadirganj on the Ganges in the Etah district, he was defeated by the Rohillas under Hafiz Rahmat Khan and killed. Safdar Jang at ones attempted to seize Farrukhabad and the other Bangash parganas, but Ahmad Khan, the son of Qaim Khan, collected his adherents and in 1750 defeated the Wajir General Nawab Rae at Khuaganj, and the Wajit soon afterwards near Patiali. Had the ambition and enterprise of Ahmad Khan been equal to his personal courage there is little doubt that he might now have pushed on to Delhi and made himself master of the Emperors person and virtual sovereign. He was, however, far too easy-going in disposition to embark on such a scheme and contented himself with the recovery of his family, former territories and the recognition of his title to them from the Emperor. The administration of the various parganas was given to his brothers and relations, Shikohabad, which included Sakit, Kuraoli and Alikhera, going to Azim Khan, and Bhongaon and Bewar to the Majhle Nawab, Shadi Khan was sent to occupy Kora, but was opposed and defeated by Ali Quli Khan, the deputy in the Allahabad Subah. Ahmad Khans reluctance to move was overcome by the insistence of his counselors and he was persuaded to advance on Allahabad in person. While he was besieging that town the wajir had had time to recover from his defeat and had called in the Marathas to his assistance.