Relgion mixed with politics does not work. Muslims are told by many religious leaders their loyalty is too their religion first and should seek to establish a caliphate.

The only majority muslim country that has avoided this trap is Turkey and it was Attaturk who cleverly enshirned democracy and seperation of state and religion in decision making. This allow the creation of a Turkish entity.

This has worked well up until now. (Unfortunately the current PM is trying to make changes based on religious rule, hence the recent protests)