Before the Ottomans took over, the Muslim world was miserable. They didn’t take over for material gain but in order to unite the ummah under the flag of the Prophet ﷺ with justice for all. Many of the Sulṭans were also saints and they followed spiritual guides.