raids were thought to be triggered by a later pirate attack on Umayyad ships. Baladhuri adds that this stopped any more incursions until the reign of Uthman. In 712, Mohammed Bin Qasim defeated the Brahmin dynasty and annexed it to the Umayyad Caliphate. This marked the beginning of Islam in the Indian subcontinent. The Habbari dynasty ruled much of Greater Sindh, as a semi-independent emirate from 854 to 1024. Beginning with the rule of 'Umar bin Abdul Aziz al-Habbari in 854 CE, the region became semi-independent from the Abbasid Caliphate in 861, while continuing to nominally pledge allegiance to the Abbasid Caliph in Baghdad. The Habbaris ruled Sindh until they were defeated by Sultan Mahmud Ghaznavi in 1026, who then went on to destroy the old Habbari capital of Mansura, and annex the region to the Ghaznavid Empire, thereby ending Arab rule of Sindh. The Soomra dynasty was a local Sindhi muslim dynasty that ruled between early 11th century and the 14th century. Later chroniclers like Ali ibn al-Athir (c. late 12th c.) and Ibn Khaldun (c. late 14th c.) attributed the fall of Habbarids to Mahmud of Ghazni, lending credence to the argument of Hafif being the last Habbarid. The Soomras appear to have established themselves as a regional power in this power vacuum. The Ghurids and Ghaznavids continued to rule parts of Sindh, across the eleventh and early twelfth century, alongside Soomrus. The precise delineations are not yet known but Sommrus were probably centered in lower Sindh. Some of them were adherents of Isma'ilism. One of their kings Shimuddin Chamisar had submitted to Iltutmish, the Sultan of Delhi, and was allowed to continue on as a vassal. The Sammas overthrew the Soomras soon after 1335 and the last Soomra ruler took shelter with the governor of Gujarat, under the protection of Muhammad bin Tughluq, the sultan of Delhi. Mohammad bin Tughlaq made an expedition against Sindh in 1351 and died at Sondha, possibly in an attempt to restore the Soomras. With this, the Sammas became independent. The next sultan, Firuz Shah Tughlaq attacked Sindh in 1365 and 1367, unsuccessfully, but with reinforcements from Delhi he later obtained Banbhiniyo's surrender. For a period the Sammas were therefore subject to Delhi again. Later, as the Sultanate of Delhi collapsed they became fully independent. Jam Unar was the founder of Samma dynasty mentioned by Ibn Battuta. The Samma civilization contributed significantly