Military takeover saved Spain from the Communist in 1936....
Similarly, military takeover periodically saves Turkey from the Islamists. Turkey's constitution mandates a secular government. Their officers, like ours, are sworn to uphold that Constitution. They do, as required. (It's getting to be time again, BTW)