Islam and Jainism came in close contact with each other following the Islamic conquest from Central Asia and Persia in the seventh to the twelfth centuries, when much of north and central India came under the rule of the Delhi Sultanate, and later the Mughal empire. The Miyana Rajputs, many of whom were Jains (as per their last name) adopted Islam at the time of Allauddin Khilji (Kumar Suresh Singh, Rajendra Behari Lal, Anthropological Survey of India, P. 9390, Gujarat). The first mosque built in Delhi, the "Quwwat al-Islam" (near Qutb Minar) was built after the Jain temples built previously during the Tomar rule were sold to the Muslims. 27 Jain and Hindu temples were demolished to build this mosque also known as "might of Islam". The remains of the temple were used for to provide the building material for the mosque. Similarly the Jami Masjid at Cambay was build on ruins of Jain temples.