Thousands of people took part in rallies across Turkey in an act of defiance following a failed coup against Turkish President Recep Tayyip Erdogan that was organised by rebel soldiers, leading to the deaths of 265 people, with more than 1,400 injured. Gathering at Istanbul airport, central Taksim square and outside the presidential palace, supporters waved flags and brandished placards in favour of the Turkish president.

The failed coup, which was attempted on the evening of 15 July, saw rebel soldiers use tanks, attack helicopters and fighter jets as means to try to overthrow Erodogen. They attacked the Turkish parliament, along with the intelligence agency headquarters in Ankara, while others seized a bridge and surrounded Istanbul airport.

Turkey
Supporters of Turkish President Recep Tayyip Erdogan stand under a giant Turkish national flag during a pro-government demonstration on Taksim Square in IstanbulAlkis Konstantinidis/Reuters
Turkey
Pro-Erdogan supporters gather on Taksim Square in IstanbulHalit Onur Sandal/AFP
Turkey coup attempt
A hand rests on a coffin during a funeral service for victims of the thwarted coup at Fatih Mosque in IstanbulAlkis Konstantinidis/Reuters
Turkey
A Turkish army honour guard marches after a funeral service for victims of the thwarted coup in AnkaraBaz Ratner/Reuters

Authorities managed to arrest roughly 2,839 military personnel – including the general of the Second Army that protects the country's borders with Syria, Iraq and Iran − in the wake of the attempted plot, according to the state-run Anadolu news agency. As many as 8,000 police have been removed from their positions across the country, including in Istanbul and the capital Ankara. According to a senior security officer, who spoke to Reuters, the removal was due to alleged links with the failed coup, which the Turkish government blames on a "parallel state" led by self-exiled Islamic preacher Fethullah Gulen.

Turkey
Women watch the funeral of Mehmet Agabey, who was killed in a thwarted coup, during a memorial service at Kirazlitepe Omer Orhan Mosque in IstanbulAmmar Awad/Reuters
Turkey
Police officers stand guard for victims of the thwarted coup during a funeral service in AnkaraBaz Ratner/Reuters
Turkey
Supporters of Turkish President Tayyip Erdogan hold an effigy of US based cleric Fethullah Gulen during a pro-government demonstration in AnkaraBaz Ratner/Reuters
Turkey
Coffins with victims of the thwarted coup are lined up for a funeral service in AnkaraOsman Orsal/Reuters
Turkey
Pro-Erdogan supporters wait for Turkish President at Kizilay square in AnkaraAdem Altan/AFP

On 17 July, funerals were held for those killed. One was was situated in the Fatih Mosque in Istanbul and was attended by Erodogen. During his funeral speech the Turkish President spoke of the possibility of reintroducing the death penalty, which was abolished in 2004, after a high demand from supporters that he said could not be ignored. However, Turkey's pro-Kurdish Peoples' Democratic Party (HDP) said that he would not support any proposal put to parliament on the reintroduction of such penalty. "No, we will not support it," Bilgen said, adding that in any case new laws could not be applied retroactively and that it was the responsibility of politicians to communicate this to the people.

Turkey
Pro-Erdogan supporters hold a giant Turkish flag during funeral of the victims of the coup attempt at Kocatepe Mosque in AnkaraDimitar Dilkoff/AFP
Turkey
People pray during funeral of the victims of the coup attempt at Kocatepe Mosque in AnkaraDimitar Dilkoff/AFP
Turkey
A young man places his hands and forehead on the flag-draped coffin of a relative as he mourns in IstanbulAris Messinis/AFP
Turkey
Turkey's President Recep Tayyip Erdogan collects himself after attending the funeral of a victim of the coup attempt in IstanbulBulent Kilic/AFP

Following the failed weekend coup, EU Foreign Policy Chief Federica Mogherini has warned the Turkish government that they must protect the rule of law and avoid steps that would damage the constitutional order. EU commissioner, Johannes Hahn, who is dealing with Turkey's membership bid, says the swift rounding up of judges after the coup indicates the government must have prepared a list beforehand. "We were the first, and I was personally the first, during that tragic night, to say that the legitimate institutions needed to be protected. We are the ones saying today rule of law has to be protected in the country − there is no excuse for any steps that takes the country away from that."

Turkey
Military personnel, suspected of being involved in the coup attempt, are escorted by policemen as they arrive at the Justice Palace in AnkaraBaz Ratner/ Reuters
Turkey
A Turkish national flag is seen next to the dome of a mosque in IstanbulAlkis Konstantinidis/Reuters
Turkey
Supporters of Turkish President Tayyip Erdogan attend a pro-government demonstration at Taksim square in IstanbulAmmar Awad/Reuters
Turkey
Supporters of Turkish President Tayyip Erdogan wave a huge Turkish national flag during a pro-government demonstration on Taksim Square in IstanbulAlkis Konstantinidis/Reuters
Turkey
Supporters of Turkish President Tayyip Erdogan wave Turkish national flags and shout slogans as they stand around the Republic Monument in Taksim Square in IstanbulAlkis Konstantinidis/Reuters
Turkey
Women wave flags during a rally of pro-Erdogan supporters at Taksim square in IstanbulYasin Akgul/AFP
Turkey
Women observe from a window during funeral of the victims of the coup attempt at Kocatepe Mosque in AnkaraDimitar Dilkoff/AFP
Turkey
A girl wearing a ribbon around her head that reads 'Turkey' waits with her family at Istanbul's Istiklal shopping streetKursat Bayhan/Getty Images
Turkey
A Turkish special force police officer guards site of a funeral held for a victim of the coup attempt, attended by Turkish PresidentOzan Kose/AFP
Turkey
Turkish national flags hang as people walk on part of the city's historical walls in IstanbulAlkis Konstantinidis/Reuters
Turkey
Pro-Erdogan supporters gather at Taksim square in IstanbulAris Messinis/AFP
Turkey
A supporter of Turkish President Tayyip Erdogan is silhouetted against a Turkish flag during a demonstration outside parliament building in AnkaraOsman Orsal/Reuters