Ali Baba was the brother-in-law of Sultan Suleiman the Magnificent and had been a high-ranking Baba in the important Dimetoka Teḱe when his sister (who was one of the sultan’s wives) fell into disfavor with her husband , аs a result, Ali Baba was banished to Tetovo at the outer fringes of the Ottoman Empire where he started his own Teḱe, аnother version of the story goes that Ali Baba was an official of the Ottoman Empire who gave up his position in order to live the simple life of a Bektashi monk , Sultan Suleiman the Magnificent, angered by the departure of one of his favorite officials, yelled after Ali as he departed Istanbul, ‘‘If you will be a fool, then go.’’ Sersem, the old Turkish for ‘fool’, became Ali Baba’s nickname thereafter