In the late 18th century and especially during the 19th, European-style reforms pushed Islam out of influential positions and diminished its leaders' influence in government.
Some see that Islam, as practiced in the Ottoman Empire was superstitious in many ways.