محمد بن القاسم الثقفي
Local kings who converted to islam existed in places such as Gujarat as early as in the 7th century. Islamic rules in India prior to the advent of the Mamluk dynasty (Delhi) include those of Umayyad Caliphate's Muhammad bin Qasim, Ghaznavids and Ghurids.