This was the duty that the 330 officers thought they were performing in 2003, according to the indictments. The Justice and Development Party (AKP), a moderate Islamic party espousing conservative social values, had come to power after the 2002 election: the voters had got it wrong again, and their mistake had to be corrected.
The accused 330 claimed that "Operation Sledgehammer" was all just a scenario for a military exercise, and the documents supporting the accusations (probably leaked by junior officers opposed to a coup) have never been properly attributed. But given the army's track record of four coups in 50 years and its deeply rooted hostility to Islamic parties, the charges were entirely plausible, and in the end the court believed them.
Even now, many secular-minded people in Turkey do not trust the motives of an Islamic party in government. They still think the army is there to protect them from religious fanatics. Any attempt to curb its power is a conspiracy against the principle of the secular, neutral state.
But the Turkish secular state has never been neutral. From the time when Mustafa Kemal Ataturk and his companions, all military officers, rescued Turkey from the wreckage of the Ottoman empire after World War I, the state was at war with religion.
Today's Turkey is modern, powerful and prosperous, and there is no external threat.
It's high time for the Turkish army to stop waging a cold war against the part of the population who are still devoutly religious. They are entitled to the full rights of citizenship too, although they are not entitled to force their beliefs and values on everybody else.
That was the significance of AK's victories in the past three elections, and of the trials that have finally brought the army under control. The head of the Turkish armed forces and all three service chiefs resigned in July in protest against the trials of military personnel, but President Abdullah Gul promptly appointed a new head of the armed forces - who tamely accepted the post. It's over.
Gwynne Dyer is an independent journalist whose articles are published in 45 countries.