The coup attempt was the greatest challenge to the rule of Erdogan, who has been in power since 2003, first as prime minister and later as president.
After crushing the attempted takeover, Erdogan went on to win a referendum in April that will considerably extend the powers of his office a move that has raised fear among opponents who say he has become increasingly authoritarian.
They held Istanbul's main bridge and square, attacked some government buildings and tried to overtake television stations. They also tried to capture or kill the president, who was vacationing at a Mediterranean resort at the time.
Heeding a call by Erdogan broadcast on CNN-Turk through a video app, thousands of people took to the streets to stop the tanks and soldiers. Police and officers loyal to the government put down the coup, which did not have support in the military's top echelons, within hours.
More From This Section
The dead include 53 special operations police who were killed in an attack on their headquarters in Ankara. Some 30 coup plotters are also believed to have died during their failed attempt.
Tarkan Ecebalin and his 27-year-old son, Tolga, were among the hundreds of people who took Erdogan's call to heart and rushed to out to protect the Istanbul mayor's office. A gunshot struck the younger man just below the eye and he died from the injury.
"Dad," Tarkan recalled his son telling him before he died. "This is something else. If our elders told us to take to the streets, maybe God will destine us martyrdom."
Erdogan is set to unveil a large monument for the "martyrs" opposite his palace in Ankara and another near Istanbul's former Bosporus Bridge, which has been renamed as the "July 15 Martyrs Bridge" to honour the people who died resisting the coup.
The government has blamed the coup on the influential movement led by US-based Muslim cleric Fethullah Gulen, a former Erdogan ally who ran a network of schools, dormitories, media outlets and universities. Gulen's followers are accused of infiltrating state institutions over decades to carry out the insurgency.
Erdogan once described the coup as a "gift from God" that had allowed the government to purge the military and public institutions of the Gulenists who once were allied with his Islamic-rooted Justice and Development Party.