Girnár. While Mahmúd was on the march the Rá Mandalika suddenly joined him, and asking why the Sultán was so bent on his destruction when he had committed no fault, agreed to do whatever Mahmúd might command. The king replied there is no fault like infidelity, and ordered the Rá to embrace Islam. The chief, now thoroughly alarmed, fled by night and made his way into Girnár. In 1472–73, after a siege of nearly two years, forced by the failure of his stores, he quitted the fort and handing the keys to the king, converted to Islam. Though the Rá's life was spared, Sorath from this date became a crown possession, and was governed by an officer appointed by the king and stationed at Junágaḍh. At the close of the war, in 1479, Mahmúd Sháh repaired the fort Jehánpanáh, the present outer or town wall of Junágaḍh, and, charmed with the beauty of the neighbourhood, settled sayads and learned men at Junágaḍh and other towns in Sorath. He induced the nobles to build houses, himself raised a palace and made the new city his capital under the name of Mustafábad and enforced his claims as overlord on all the neighbouring chiefs. In the times of Ahmad Shah I, these chieftains, including even the Junágaḍh Rá himself, had paid tribute. But Mahmúd established rule so firmly that the duty of collecting the tribute was entrusted to an officer permanently settled in the country. The author of the Mirăt-i-Sikandari dilates on the dense woods round Junágaḍh, full of mango, ráen, jámbu, gúlar, ámli, and áonla trees (Mangifera indica, Mimusops hexandra, Eugenia jambolana, Ficus glomerata, Tamarindus indica, and Emblica officinalis.), and notes that this forest tract was inhabited by Khánts. In 1480, when Mahmúd Sháh was at Junágaḍh, Khudáwand Khán and others, who were weary of the king's constant warfare, incited his eldest son Áhmed Khan to assume royal power. But Imád-ul-Mulk, by refusing to join, upset their plans, and on the king's return the conspiracy was stamped out. Champaner (Pavagadh) In 1479, Mahmúd Sháh sent an army to ravage Champaner then held by Khichi Chauhan Rajputs which titled themselves as Raval. About this time, hearing that the neighbourhood was infested with robbers, he founded the city of Mehmúdábád (now Mahemdavad) on the banks of the Vatrak river, about eighteen miles south of Áhmedábád. Several monuments in Mahemdavad are credited to him including