Rulers, especially in medieval India, sought the support of Sufis for both religious and political reasons. Sufis were seen as spiritually influential figures who could mediate between the ruler and the general population, often promoting peace and harmony. Their popularity with the masses made them important allies for rulers who wanted to ensure stability and legitimacy. Sufis also had a reputation for being tolerant and non-sectarian, which helped rulers maintain control over diverse and often fragmented populations. Additionally, Sufis played a role in spreading Islam and in shaping cultural and religious policies in the regions they inhabited.