The sultans were left in charge of local and religious affairs , content with their prestige , prosperity , and security .
Almost no real power remained to the sultans , leaving them unhappy at their loss of stature .