WIDE SPECTRUM
The protests, started by a small group of environmental campaigners, mushroomed when police used force to eject them from the park on Taksim Square.
As word spread online, the demonstrations drew in a wide range of people of all ages from across the political and social spectrum.
The ferocity of the police response in Istanbul shocked Turks, as well as tourists caught up in the unrest in one of the world's most visited destinations. It has drawn rebukes from the United States, European Union and international rights groups.
Helicopters fired tear gas canisters into residential neighbourhoods and police used tear gas to try to smoke people out of buildings. Footage on YouTube showed one protester being hit by an armoured police truck as it charged a barricade.
For much of Sunday, the atmosphere in Taksim Square was festive, with some people chanting for Erdogan to resign and others dancing. There was little obvious police presence.
But in the nearby Besiktas neighbourhood, riot police fired tear gas and water cannons to keep crowds away from Erdogan's office in Dolmabahce Palace, a former Ottoman residence on the shores of the Bosphorus.
There were similar scenes in Ankara's main Kizilar square.
Erdogan is due to fly to Morocco on Monday as part of an official visit that also covers Algeria and Tunisia. Sources in his office said his trip would go ahead.
Erdogan has overseen a transformation in Turkey during his decade in power, turning its once crisis-prone economy into the fastest-growing in Europe.
He remains by far Turkey's most popular politician, but critics point to what they see as his authoritarianism and religiously conservative meddling in private lives in the secular republic.
Tighter restrictions on alcohol sales and warnings against public displays of affection in recent weeks have also provoked protests. Concern that government policy is allowing Turkey to be dragged into the conflict in neighbouring Syria by the West has also led to peaceful demonstrations.
On Sunday, Erdogan appeared on television for the fourth time in less than 36 hours, and justified the restrictions on alcohol as for the good of people's health.
"I want them to know that I want these (restrictions) for the sake of their health ... Whoever drinks alcohol is an alcoholic," he said.