In the wake of the coup attempt, Turkish president Recep Tayyip Erdogan can hardly be blamed for purging the military. But firing 2,745 judges without any investigation or demonstrated connection to the coup is another matter. The action threatens the rule of law in Turkey going forward. And the way it was done signals some of the methods Erdogan can be expected to use in the weeks and months ahead.

Turkey is a constitutional democracy. If it sounds strange to you that the head of state could just fire judicial officials, your legal instincts are correct. Erdogan lacks that constitutional power — and technically, he didn't exercise it.

The firing of the judges, which was reported on Saturday, just hours after the coup was put down, was the work of an entity called the High Council of Judges and Prosecutors. (The Turkish acronym is HSYK). The council is the entity with the constitutional responsibility for supervising and disciplining members of the legal system in Turkey.