Multan along with Sindh came under rule of Muslims by conquest of Umayyad Caliphate under General Muhammad Bin Qasim.
Muhammad III, whose full name was Muhammad bin al-Qasim bin Munabbih, was reported by Al-Biruni to be the first of the Banu Munabbih (Samid) rulers of Multan - he conquered Multan and issued silver dammas bearing his Hindu epithet "Mihiradeva" ("Sun god") on the reverse.
[6] During this era, the Multan Sun Temple was noted by the 10th century Arab geographer Al-Muqaddasi to have been located in a most populous part of the city.
[11][12][13] Jalam bin Shayban, a proselytizing Da'i that had been dispatched to the region by the Fatimid Caliph Imam al-Mu'izz,[14] was dispatched to replace the city's previous Da'i who had been accused of promoting a syncretic version of Islam that incorporated Hindu rites[9] – though his replacement was likely the result of doctrinal differences regarding succession in the Ismaili Imamate.
[23] According to Samuel Miklos Stern, the Lodi dynasty itself might have been fabricated as its mention only starts appearing with later historians like Firishta.
[22] During the reign of Sheikh Hamid, the Ghaznavid Amir Sabuktagin invaded Multan in 381/991 during his era, but later made a truce with Hamid Lodi, as Isma'ili Multan served as a buffer-state between the rising Turkish power of Ghazna and the old Hindu rulers-the Imperial Pratiharas of Kanauj.
Mahmud of Ghazna invaded Multan in 1005, conducting a series of campaigns during which some Ismailis were massacred while most later converted to Sunni Hanafi fiqh.
After being granted power, Niwasa Khan renounced Islam, and attempted to secure control of the region in collusion with Abdul Fateh Daud.
[30] He fled to a fort where he immured himself and was finally pardoned by Mahmud of Ghazni on the promise of payment of ransom.
The terms were accepted, and Sultan Mahmud Ghaznavi also exacted two million dirhams from the population of Multan by force.
The 10th century Arab historian Al-Masudi noted Multan as the city where Central Asian caravans from Islamic Khorasan would assemble.
[11] The 10th century Persian geographer Estakhri noted that the city of Multan along with Sindh's Mansura were the only two Arab principalities in South Asia.
In Multan the Khutba is read in the name of the Fatimid Caliph of Egypt and the place is administered by his orders.
There is no bad conduct and drunkenness here, and people convicted of these crimes are punished with death or by some heavy sentence.