CAIRO (AFP) - Egypt on Sunday braced for rival demonstrations called by supporters and opponents of deposed Islamist president Mohamed Mursi as it marks the 40th anniversary of the 1973 Arab-Israeli war.
Security forces and vehicles were deployed around the main squares of the country, where protesters were expected to turn out in a show of support for the army that ousted Mursi in July.
People, carrying pictures of army chief Abdel Fattah al-Sisi, trickled into Cairo's Tahrir Square, the symbolic heart of Egypt's 2011 uprising, as military jets in formation flew overhead.
For weeks authorities have been drumming up patriotic fervour in state media, amid the worst political divisions Egypt has seen in recent history.
Supporters of Mursi and his Muslim Brotherhood have called their own rival demonstrations, sparking fears of fresh unrest after months of violence and political turmoil.
Mursi's opponents had taken to the streets in their millions in June to call on the military to remove the Islamist leader, who was accused of failing the revolution that brought him to the presidency and concentrating power in the hands of his Islamist allies.
His supporters decried his overthrow - a year after he was elected in the country's first free elections - as a violation of democratic principles.
Cairo's streets were largely deserted on Sunday, a public holiday to commemorate the October war, known as the Yom Kippur war in Israel, remembered proudly by the Egyptian army because it caught Israel by surprise. The war ultimately led to the recovery of the Sinai Peninsula in a 1979 peace treaty.
The interior ministry warned it would "firmly confront" any violence at the demonstrations on Sunday, which aimed to converge at Tahrir Square.
It warned against "attempts that may disturb the October 6 celebrations in Egypt," state news agency MENA quoted it as saying.
"The ministry asserts its determination to firmly confront all violence and infringements of law by the Muslim Brotherhood supporters through their marches."
Attempts by Islamists to reach Tahrir Square on Friday had sparked clashes with Mursi opponents and security forces in which four people were killed, making it the deadliest street fighting in more than a month.
It was unclear whether the dead were Islamists or their opponents, but a medical official said none were security personnel.
Mursi's opponents had begun gathering at the square from Saturday evening chanting pro-military slogans, an AFP correspondent reported.
Authorities deployed several armoured vehicles around the square and installed metal detectors at two entrances to allow people inside. All other entrances were sealed.
Calls for demonstrations on Sunday also came from the Tamarod movement, which led the nationwide protests that prompted the army's ouster of Mursi, Egypt's first democratically elected leader.
"We call all Egyptians to come out tomorrow across all squares in the country to assert that this nation will not allow its revolution to be stolen," prominent Tamarod leader Mahmoud Badr told reporters Saturday.
Analysts said the Islamists' call for protests on Sunday was a high-risk attempt to strip the current high military command of the army's legacy and patriotic pride in the Arab-Israeli conflict.
"They will try to show that the present army is not the army of all Egyptians, but only of those who backed the coup," said Hassan Nafaa, political science professor at Cairo University.
"But this message will not go down well," he told AFP.
The Anti-Coup Alliance, the main pro-Mursi group, has repeatedly called for protests against the military's overthrow of Mursi, but its ability to mobilise large crowds has waned as security forces have arrested some 2,000 Islamists, including Mursi himself and several top Muslim Brotherhood leaders.
Egypt has been engulfed in political turmoil since Mubarak was toppled during the 2011 Arab Spring, but the conflict between Islamists and their secular rivals took a particularly violent turn after Mursi's ouster.
Hundreds were killed on August 14 when security forces moved in to destroy two large protest camps set up by Mursi supporters in Cairo. Islamists elsewhere in Egypt struck back, attacking police and torching churches and other Coptic Christian institutions.
The government has also been battling an increasingly virulent insurgency in the Sinai, where militants have launched near-daily attacks on police and military targets.
On Saturday, interim president Adly Mansour said in a televised speech that authorities will "defeat much-hated terrorism and blind violence with the rule of law that will protect the freedom of citizens and resources."