For some time before his father’s death, Prince Khalíl Khan had been living at Baroda (now Vadodara), and shortly after his accession, he visited that neighborhood and founded a town named Daulatabad. In 1514, Rao Bhím, the son of Rao Bhan of Idar State, defeated Ain-ul-Mulk, governor of Patan, who was coming to Ahmedabad to pay his respects to the king. The officer had turned aside to punish Rao for some disturbance he had created, but failing in his purpose, was himself defeated. When Muzaffar Shah approached, Rao abandoned Idar and made peace by agreeing to pay a heavy tribute. Meanwhile, the king marched to Godhra, and then to Malwa via Dahod and soon after went on to Dhar.