In a night he called a "black stain on Turkish democracy", he said 161 people had been killed and 1,440 wounded.
Explosions and gunfire were heard in Ankara, Istanbul and elsewhere overnight and thousands of Turks heeded President Erdogan's call to rise up against the coup-plotters.
It is unclear who was behind the coup.
President Recep Tayyip Erdogan blamed a "parallel structure", in a clear reference to Fethullah Gulen, a powerful but reclusive US-based Muslim cleric whom he accuses of fomenting unrest.
However, in a statement, Mr Gulen rejected any suggestion he had links to the events, saying he condemned "in the strongest terms, the attempted military coup in Turkey".