Mahmúd Sháh next turned his thoughts to the conquest of the mountain citadel, Uparkot, of Girnar hill near Junagadh in Sorath (now in Saurashtra region of Gujarat). In 1467, he made an attack on the fort of Junágaḍh, and receiving the submission of Ra Mandalika III, the Chudasama ruler, returned to his capital. In the following year, hearing that the Junágaḍh chief continued to visit his idol temple in state with a golden umbrella and other ensigns of royalty, Mahmúd despatched an army to Junágaḍh, and the chief sent the obnoxious umbrella to the king, accompanied by fitting presents. In 1469, Mahmúd once more sent an army to ravage Sorath, with the intention of finally conquering both Junágaḍh and 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.