From Dani Rodrik, two years ago:
The mysterious Ergenekon trials, which at first seemed based in fact, and later morphed into a wholesale witch hunt, seem to have been motivated by the Gulenists in the judiciary (+1 for the sinister theory of the Gulenists). Now with the secular-military establishment weakened, they have turned on Erdogan. Some recent commentary from Rodrik:
Turkey is caught between a prime minister who acts like a democrat and a judiciary that acts like it’s enforcing the rule of law.