Egypt's political crisis spiralled deeper into bitterness and recrimination as thousands of Islamist backers of the president vowed vengeance at a funeral for two men killed in bloody clashes earlier this week and large crowds of the president's opponents marched on his palace to increase pressure after he rejected their demands.
The two camps in the country's divide appeared at a deadlock after president Mohammed Morsi gave a fiery televised speech on Thursday night denouncing his opponents and refusing to call off a referendum on a draft constitution promulgated by his allies, even as he appealed for dialogue. The opposition rejected talks, saying he must first cancel the referendum and meet other demands.
With Egypt's crisis now in its third week, anger was mounting in the streets, after the two camps clashed on Wednesday in heavy battles outside the presidential palace that left six dead and more than 700 injured.
Each side is depicting the conflict as an all-out fight for Egypt's future. The opposition accuses Mr Morsi and his Islamist allies of turning increasingly dictatorial to force their agenda on the country and monopolise power. The Muslim Brotherhood, from which Mr Morsi hails, and other Islamists say the opposition is trying to use the streets to overturn their victories in elections over the past year.
The tone was one of a battle cry as thousands of Islamists held funeral prayers at Al-Azhar Mosque - the country's premier Islamic institution - for two Morsi supporters killed in Wednesday's clashes. Seeking to rally their side, a series of speakers to the crowd portrayed the opposition as tools of the regime of ousted leader Hosni Mubarak - or as decadent and un-Islamic - and vowed to defend a constitution they say brings Islamic law to Egypt.
"Egypt is Islamic, it will not be secular, it will not be liberal," the crowd chanted in a funeral procession filling streets around the mosque. During the funeral, thousands chanted "With blood and soul, we redeem Islam", pumping their fists in the air. Mourners yelled that opposition leaders were "murderers".
At the same time, thousands of protesters against Mr Morsi streamed in several marches from different parts of Cairo towards his presidential palace in an upscale neighbourhood for a third straight day. Many were furious over the president's speech the night before in which he accused "hired thugs" of attacking protesters outside the palace on Wednesday, sparking the clashes. Most witnesses say the clashes began when Morsi supporters attacked a tent camp set up by anti-Morsi protesters.
At the rings of barbed wire outside the palace, protesters chanted "Leave, leave", and "the people want the fall of the regime". Egypt's military intervened on Thursday for the first time, posting tanks around the palace and stringing barbed wire.
Mr Morsi attended weekly Friday prayers at the Republican Guards' mosque near the palace - after he was denounced by worshippers last week at a mosque near his home in a Cairo suburb where he often prays.
Rival protests also took place in cities around the country, including in the cities of Alexandria on the Mediterranean coast and Luxor in the south. The two sides pelted each other with stones outside the headquarters of the Brotherhood office in Nile Delta city of Kom Hamada, in the province of Beheira. In the Delta industrial city of Mahallah, protesters cut railroads stopping trains and announcing a sit-in until cancellation of Mr Morsi's decrees and the referendum.