One of Ala ud din's generals was a neo-Muslim, Muhammad Shah, who had helped Kanhad Dev. This general later went and stayed with Hammir Deo in Ranthambore. Ala ud din wanted him dead, and asked Hammir to hand him over. Hammir replied that he knows how to draw his sword, and anyone who has taken shelter in his fort would not be turned over. Hammir did not consider Khilji king of India. Ala ud din attacked Ranthambore in 1299, but his armies consisting of 80,000 cavalry, led by generals Ulugh Khan and Nusrat Khan, were badly defeated. Nusrat Khan was killed by rajputs in this campaign.

Khilji finally came himself in 1301 A.D., and there was a long siege. Hammir was very well prepared. When the fort did not fall after repeated bloody skirmishes Khilji, tired of living in an insect infested swamp for seven months (land outside Ranasthambpur fort is marshy), resorted to diplomacy.

Marshy Battle Field below Ranthambore Fort.

Hammir was very suspicious but he heeded to his councilors who told him that sword is not always the best recourse. Ratipal and Ranmal, who were close confidants of Hammir, were sent to the Khilji camp. Ranmal's father was hung by Hammir for treachery and his property was confiscated. Ranmal earned the trust of Hammir by being brave in battles that Hammir fought but perfidy was in his blood. Khilji bribed these two generals of Hammir's army and consequently Ranthambore fell.

(English translation:)A lioness gives birth to a cub only once; once alone is the word of a good man given; once only does a plantain bear fruit; a woman is anointed only once with oil for marriage; and once alone did Hammira give his irrevocable promise.