Āśāpalli in 1299 between Karṇa of the Vaghela dynasty and Ullu Khāna (Ulugh Khān), general of the Delhi Sultanate ruler 'Alā ud-Dīn, which resulted in Karṇa's defeat and the end of his reign. Gujarat Sultanate rule (1411–1572) Zafar Khan Muzaffar (later Muzaffar Shah I) of Muzaffarid dynasty was appointed as governor of Gujarat by Nasir-ud-Din Muhammad bin Tughluq IV in 1391. Zafar Khan's father Sadharan, was a Tanka convert to Islam, adopted the name Wajih-ul-Mulk, and had given his sister in marriage to Firuz Shah Tughlaq. Zafar Khan defeated Farhat-ul-Mulk near Anhilwad Patan and made the city his capital. When the Sultanate was weakened by the sacking of Delhi by Timur in 1398, and Zafar Khan took the opportunity to establish himself as sultan of an independent Gujarat. He declared himself independent in 1407 and founded the Gujarat Sultanate. The next sultan, his grandson Ahmad Shah I defeated a Bhil or Koli chief of Ashaval, and founded the new city. Foundation Date Ahmad Shah I laid the foundation of the city on 26 February 1411 (at 1.20 pm, Thursday, the second day of Dhu al-Qi'dah, Hijri year 813) at Manek Burj. He chose it as the new capital on 4 March 1411. Legend Ahmed Shah I, while camping on the banks of the Sabarmati river, saw a hare chasing a dog. The sultan was intrigued by this and asked his spiritual adviser for explanation. The sage pointed out unique characteristics in the land which nurtured such rare qualities which turned a timid hare to chase a ferocious dog. Impressed by this, the sultan, who had been looking for a place to build his new capital, decided to found the capital here. Origin of name Ahmad Shah I, in honour of four Ahmads, himself, his religious teacher Shaikh Ahmad Khattu, and two others, Kazi Ahmad and Malik Ahmad, named it Ahmedabad. The story is that the king, by the aid of the saint Shaikh Ahmad Khattu, called up the prophet Elijah or Khidr, and from him got leave to build a city if he could find four Ahmads who had never missed the afternoon prayer. A search over Gujarat yielded two, the saint was the third, and the king the fourth. The four Ahmads are said to have been helped by twelve Babas; these were Baba Khoju, Baba Laru, and Baba Karamal, buried at Dholka; Baba Ali Sher and Baba Mahmud