Here are the main developments since the failed coup against President Recep Tayyip Erdogan a year ago.
On July 15, 2016, a renegade army faction attempt a coup against Erdogan which leaves 249 people dead. Erdogan urges the population to resist. He blames the putsch on exiled cleric Fethullah Gulen.
The plotters fail.
Since then 50,000 people have been arrested and more than 100,000 fired or suspended from their jobs. The government imposes control over the army, whose political influence ebbs.
On July 16-17, hundreds of generals, judges and prosecutors are arrested across Turkey on allegations they participated in the failed coup. The purges widen to include the police, the education system and the media.
On July 20, Erdogan declares a state of emergency.
Erdogan meets Russian President Vladimir Putin in August. The meeting helps restore trust after Turkey shot down a Russian jet over the Syrian-Turkish border in late 2015. The meeting also helps cement relations with one of the main backers of President Bashar al-Assad's regime in Syria.
In March 2017, several European countries cancel rallies by Turkish ministers and bar its politicians from visiting to campaign for a referendum on expanding Erdogan's powers.
A vitriolic series of exchanges follow, with Erdogan repeatedly accusing Germany and the Netherlands of behaving like "Nazis".
Relations with Germany have continued to deteriorate since.
Turkish voters narrowly approve in April 16 referendum constitutional changes that will expand Erdogan's powers, and possibly allow him to stay in office until 2029.
The three biggest cities, Istanbul, Ankara and Izmir, vote "No". The opposition questions the legitimacy of the vote.
On August 1 nearly 500 people appear in court near Ankara in the biggest trial yet of suspects from the failed coup. Two other trials started in February and May.
On August 2 Turkey's top military body replaces the land, air and naval commanders.