TURKEY — If the Turkish public want the death penalty following last month’s failed coup then political parties will follow their will, President Recep Tayyip Erdogan said at a rally in Istanbul on Sunday.

A massive flag-waving crowd, the size of which some Turkish media said had never been seen before, gathered to mark the end of nightly demonstrations since Turkey’s July 15 abortive coup that left more than 270 people dead.

“If the nation makes such a decision (in support of death penalty), I believe political parties will abide by this decision,” Erdogan said during the unity rally in Yenikapi square in the touristic Sultanahmet district.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

No official estimate was provided, but Turkish media said millions were attending. The event was so full that large crowds were turned away at the gates, spilling into surrounding streets.

“It is the Turkish parliament that will decide on this (death penalty) given the sovereignty rests with the nation… I declare it in advance, I will approve the decision made by the parliament,” Erdogan said.

“We will continue on our road in solidarity. We will love each other not for rank or title, but for Allah,” Erdogan said on a 60-meter (200-foot) stage set up for the event. The stage was framed by two platforms and draped with massive national flags and banners depicting Erdogan and Turkey’s founding father Mustafa Kemal Ataturk.

“This nation will never accept servitude,” the president said.

He attacked critics who said there was no death penalty in the EU, of which Turkey is a candidate nation, countering that capital punishment is used in the United States, Japan and China.

“Today there is the death penalty in the majority of the world,” he said, adding that capital punishment had been legal in Turkey until 2004, though the last execution took place in 1984.

European Union officials have said a reintroduction of the death penalty would put an end to Turkey’s prospects of joining the bloc.

The Yenikapi meeting area by the Marmara Sea waterfront in Istanbul’s European side was transformed into a sea of red and white, the colors of Turkey’s flag. The “Democracy and Martyrs’ Rally” was billed as a cross-party event representing Turkish unity in the wake of the failed coup, in which a group of renegade military officers attempted to seize power with tanks, helicopters and fighter jets.

The government has launched a sweeping crackdown in the coup’s aftermath, targeting followers of US-based Muslim cleric Fethullah Gulen, who it says orchestrated the putsch. Nearly 18,000 people have been detained or arrested, mostly from the military, and tens of thousands of people have been suspended or dismissed from jobs in the judiciary, media, education, health care, military and local government.

“As a state and as a nation we need to analyze the July 15 coup attempt very well. We need to evaluate well not just those who engaged in this treachery, but the powers behind them, the motives that made them take action,” Erdogan said.

The scope of the crackdown has alarmed European countries and rights groups, who have urged restraint. Erdogan has lashed out at such criticism, and complained of a lack of support from the West for his government for surviving the coup.

“July 15 showed our friends that this country isn’t just strong against political, economic and diplomatic attacks, but against military sabotage as well. It showed that it will not fall, it will not be derailed,” he said. “Those wringing their hands on that night hoping for Turkey to fall woke up the next day to realize their work was much harder than they thought.”

Religious leaders and two of Turkey’s three opposition parties attended the rally, sitting next to Erdogan, who arrived on board a helicopter with his wife Emine. The pro-Kurdish People’s Democracy Party, or HDP, wasn’t invited.

“July 15 has opened the door for our reconciliation,” said main opposition Republican People’s Party Chairman Kemal Kilicdaroglu. “There is now a new Turkey after July 15. If we can further this power, this culture of rapprochement, we will all be able to leave our children a great Turkey.”

The event kicked off with a minute of silence for those killed while opposing the coup, followed by the Turkish national anthem and a recitation of prayers.

“I have never been in democracy rallies but I really wanted to come this one. Because I don’t want to lose my country,” said Sevda Bozkurt, a 44-year-old housewife who didn’t manage to get in. “This is one of the biggest rallies. Turkey’s three political parties gathered together, they become friends, they become brothers. Maybe there is hope for Turkey.”

Construction cranes suspended giant Turkish flags beside the meeting area, while flag-draped boats and yachts zipped back and forth along the water.

Following the abortive putsch, the Turkish government has been encouraging nightly anti-coup rallies in all of the country’s 81 provinces as well as in certain foreign locations such as Cologne, Germany.

The event was being simultaneously broadcast on giant screens in all of Turkey’s provinces, and crowds of thousands gathered to watch in the country’s major cities.

“Today is a special day, which is making all of the gatherings held for 15, 24 days, more precious,” said Mustafa Yavuz Aycil, a 44-year-old Istanbul resident attending the rally. “I also had to be here today because, as you see, all of the crowd is showing its reaction to the coup.”

Nearly 15,000 police provided security at the event. Anti-aircraft batteries were also set up at the event grounds, while two helicopters circled overhead.

Thousands of buses and more than 200 boats were commissioned to bring attendees to the area, where they passed through one of 165 metal detectors before being given hats and flags. Those wounded during the attempted coup and the families of those who died were given special passes for a seated area.

An Ottoman marching band entertained the crowd before the official start of the event, with 240 members representing the number of those authorities say gave their lives fighting off the coup.