Thousands of Egyptians gather in Tahrir Square after Mohamed Morsi is declared the nation's first democratically elected president on Sunday, June 24. In a nationally televised speech, the longtime member of the Muslim Brotherhood promised to represent all Egyptians.
As fireworks burst overhead, Egyptians in Tahrir Square celebrate Mohamed Morsi's election on Sunday.
A supporter of the Muslim Brotherhood is carried away from the tightly packed arena of Tahrir Square in Cairo on Sunday as Mohamed Morsi supporters celebrate his victory in Egypt's presidential election.
Morsi suppporters celebrate in front of a picture of him at his campaign headquarters in Cairo on June 24.
Supporters of presidential candidate Ahmed Shafik react after hearing the results of the presidential elections in Cairo on June 24.
Farouq Sultan, center, head of the Higher Presidential Election Commission, reads the results of the presidential runoff election in Cairo on Sunday, declaring Morsi the winner.
Muslim Brotherhood supporters cheer in Cairo's Tahrir Square on Sunday after hearing of Morsi's victory in Egypt's presidential election.
Egyptians celebrate the election of Morsi after he won 51% of the vote to defeat Shafik.
Egyptians fill Tahrir Square on Sunday, June 24, as they wait for the elections commission to announce the winner of the country's presidential election.
Female supporters of Mohamed Morsi, the Muslim Brotherhood's candidate, protest against Egypt's military rulers in Tahrir Square in Cairo on Saturday, June 23. Egyptian election officials had postponed the announcement of a winner in last weekend's presidential runoff, stating they needed more time to evaluate charges of electoral abuse that could affect who becomes the country's next president.
A supporter of presidential candidate Ahmed Shafik, the last prime minister of ousted leader Hosni Mubarak, holds up a wooden Christian cross and Muslim crescent as he and others demonstrate in Nasr city on the outskirts of Cairo, on Saturday, June 23.
The official election results are expected on June 24.
Protesters demonstrate against Egypt's military rulers.
Protesters take a break from shouting slogans to pray in Tahrir Square.
Protesters sleep as they camp overnight in Tahrir Square.
Protesters wave flags and shout slogans in Tahrir Square on Friday, June 22, in Cairo.
Crowds gather in Tahrir Square to protest against Egypt's military rulers.
Protesters shout slogans to denounce what they claim is a power grab by the ruling military, as the nation nervously awaits the results of the first post-Mubarak presidential election.
Protesters gather in front of wall art in Tahrir Square.
Protesters perform Friday noon prayer under tents erected in Cairo's landmark Tahrir Square.
Egyptian activists rest at the foot of a banner of presidential candidate Mohamed Morsi in Cairo's Tahrir Square on Thursday, June 21.
Muslim clerics join demonstrators in Cairo's Tahrir Square on Thursday to protest the delay of the presidential election results. The Presidential Election Commission postponed the release of the presidential election results, and both candidates have declared themselves winners.
A supporter of Egyptian presidential candidate Ahmed Shafik kisses a portrait of him during a Cairo rally Wednesday, June 20. Shafik was the last prime minister to serve under Hosni Mubarak
Morsi supporters rally in Cairo's Tahrir Square on Monday, June 18. Morsi declared victory as Egypt's first democratically elected president even as military rulers issued a decree that virtually stripped the position of power.
Morsi supporters wave flags Monday in Cairo's Tahrir Square after the Islamists claimed victory. The square was considered the heart of the February 2011 uprising that led to Hosni Mubarak's downfall.
The Muslim Brotherhood's Mohamed Morsi makes his way through supporters at electoral headquarters early Monday in Cairo. In a victory speech, Morsi did not address the military council's move but tried to allay fears he would impose an Islamist state.
Morsi supporters celebrate Monday in Cairo. Votes in the Egyptian capital, the largest population center, continued to be tallied, but unofficial results by a state-run news website showed Morsi leading elsewhere with 11.2 million votes, compared with 10.3 million for Ahmed Shafik, the last prime minister in the waning days of Mubarak's regime.
Egyptian election officials count ballots at a polling station in Cairo on Sunday, June 17. The official vote count was scheduled to be finished Monday.
The Muslim Brotherhood on Sunday claims its candidate, Mohamed Morsi, has defeated foe Ahmed Shafik to become Egypt's president.
An Egyptian woman shows her ink-stained finger, marking that she voted in Cairo on Sunday.
Women line up to vote at a polling station in Cairo, Egypt, on the second and final day of the run-off presidential election.
Women line-up to cast their vote at a polling station in Cairo on Sunday.
Egyptian Christian Coptic men help a woman reach a polling station in the Cairo Coptic Shubra neighborhood on Saturday, June 16. Voters returned to the polls after Egypt's Supreme Constitutional Court ruled Thursday that the Islamist-led Parliament must be immediately dissolved.
A full-veiled Egyptian woman casts her vote at a polling station in Cairo on June 16.
Egyptians queue outside a polling station in Cairo.
An Egyptian Muslim Salafist shows his ink-stained finger after voting at a polling station.
An Egyptian woman dips her finger in indelible ink after casting her ballot.
Egyptian Muslim Brotherhood candidate Mohammed Morsi, center, waves to his supporters as he arrives at a polling station to vote in the city of Zagazig.
An Egyptian woman casts her ballot in Cairo.
Egyptians check to see their names are listed before casting their votes at a polling station.
Egyptian women dip their fingers in ink after voting at a polling station.
An elderly Egyptian man shows the indelible ink stain on his finger after voting on the first day of the second round of the historical presidential election at a polling station in the city of Zagazig.
Egyptians push a truck that was blocking the entrance of a polling station.
An Egyptian man smiles after casting his vote in Giza.
A veiled Egyptian woman looks for her name on the registered voters' list in the city of Zagazig.
An Egyptian Coptic Christian woman casts her vote in the Cairo Coptic neighborhood of Shubra.
Egyptian women cast their votes at a polling station.
An Egyptian woman holds her baby as she prepares to vote at a polling station in Cairo.
An Egyptian man shows off his little finger covered in indelible ink after casting his vote at a polling station in Cairo.
An Egyptian man on his donkey shows his ink-stained finger after casting his ballot.
Muslim Brotherhood candidate Mohammed Mursi casts his ballot at a polling station in the city of Zagazig.
An Egyptian woman holds up an ink-stained finger after casting her vote at a polling station in Cairo.
An elderly Egyptian man registers Saturday before voting in the city of Zagazig in an election that pits Ahmed Shafik, the last premier of ousted President Hosni Mubarak, against Muslim Brotherhood candidate Mohammed Morsi.
Election officials and an Egyptian soldier direct voters during the second stage of runoff presidential elections at a polling station in Giza.
Egyptian Christian Coptic men check the voters' list Saturday outside a polling station in the Cairo Coptic neighborhood of Shubra.
Egyptians burn the likeness of presidential candidate and former Prime Minister Ahmed Shafik in Cairo on Friday, the eve of the nation's presidential election.
A bus driver stops to wave in support of Egyptian protesters making their way to Tahrir Square on Thursday.
Egyptians pray in Tahrir Square on Thursday during a protest against presidential candidate Ahmed Shafik.
A protester stands on a barricade of barbed wire as Egyptian military police stand guard. Egypt's Supreme Constitutional Court ruled that the Islamist-led parliament must be immediately dissolved.
An Egyptian boy waves his shoes as he joins supporters of the Muslim Brotherhood in a protest in Cairo's Tahrir Square against Mubarak-era prime minister and presidential candidate Ahmed Shafik after Egypt's top court rejected on Thursday a law barring him from standing in a tense presidential poll runoff.
Protestors gesture towards military police through a barricade of barbed wire during a protest against presidential candidate Ahmed Shafik outside the Supreme Constitutional Court on Thursday.
People walk past graffiti showing faces of ousted Egyptian president Hosni Mubarak, right; Field Marshal Hussein Tantawi, second right; former Secretary General of the Arab League Amr Mussa, second left, and former prime minister and presidential candidate Ahmed Shafiq, left, at Tahrir square.
A boy peers through barbed wire at Egyptian military police standing guard outside the Constitutional Court in Cairo on Thursday, June 14.
Egyptian women line up to cast their vote Saturday.
Former Prime Minister Ahmed Shafiq, center, is seated before addressing a business conference in Cairo on Wednesday.
Egyptians read the front page of newspapers for sale outside of Al-Fatah Mosque in Cairo on Friday, May 25.
Ballots are counted by election officials in Alexandria as the country eagerly awaits the outcome Friday.
A supporter of presidential candidate Abdelmonen Abol Fotoh voices her opinions at Tahrir Square on Friday.
Supporters of various candidates debate outside Al-Fatah Mosque in Cairo on Friday.
Electoral officials monitor voting in Namul, a village north of Cairo, on Thursday, May 24, the second and final day of voting in Egypt's historic presidential election. Egypt is holding its first presidential election since last year's toppling of Hosni Mubarak, part of the wave of Arab Spring uprisings.
Egyptian women wait in line Thursday to cast their vote outside a polling station in Cairo. If no candidate gets a majority of the vote in the first round of voting, a second round will be held June 16-17.
An election worker checks the identification of a voter at a polling place Thursday in Namul as Egyptian soldiers stand guard.
A soldier stands watch in the Egyptian capital on the second day of voting. A pervasive fear exists that the powerful military, which has run the country since Mubarak's fall 16 months ago, could try to hijack the election.
An Egyptian man waits to cast his ballot Thursday north of Cairo. The vote is considered Egypt's first free and fair presidential election in modern history.
An Egyptian man drops off his ballot at a polling station Thursday in Cairo. The voting marks the first time Egypt has held a presidential election in which the results aren't known beforehand.
An Egyptian woman holds up an ink-stained finger after casting her ballot in Cairo on Wednesday, May 23, the first day of voting in the historic election.
A voter studies her ballot Wednesday in Cairo. Thirteen candidates are competing in the wide-open race, but two withdrew after ballots were printed.
Egyptian men fill out their ballots Wednesday in Cairo. Results of the first round of voting are not expected before the weekend.
An Egyptian man casts his ballot at a Cairo polling station. Some Egyptians told CNN that they waited up to four hours Wednesday to vote.
Egyptian men shield themselves from the hot sun outside a Cairo polling station Wednesday.
Egyptian men line up to cast their vote Wednesday in Cairo. Some 30,000 volunteers fanned out to ensure voting is fair, said organizers with the April 6 youth movement, which has campaigned for greater democracy in Egypt.
Egyptian men fill out their ballots at a Cairo polling place.
Presidential candidate Hamdeen Sabahy, a leftist dark-horse contender, flashes a sign of victory as he waits to vote at a Cairo school.
Presidential candidate Abdelmonen Abol Fotoh, a moderate Islamist, casts his ballot Wednesday in Cairo.
An Egyptian Coptic nun drops her ballot at a Cairo polling station Wednesday.
Egyptian women wait outside a polling station in Cairo. Many Egyptians seem uncertain of their loyalties to any particular candidate.
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Political uncertainty in Egypt
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
Egypt's long road to presidency
STORY HIGHLIGHTS
- Renewed street demonstrations could be in Egypt's near future, experts say
- High court ruling dissolves new parliament, further empowering the military
- Events amount to a "soft coup" for the military, often seen as a bulwark against Islamists
- "Egypt is entering into a very dangerous stage," analyst says
(CNN) -- Confusion reigns in Egypt after stunning court rulings threw the country's awkward transition toward democratic rule into turmoil.
The decision sparked cries that Egypt's military leaders have engineered a "soft coup" to thwart their longtime foes -- Islamists who just four months ago captured a majority of seats in the Egyptian parliament in the first election in Egypt in generations. The court's decision dissolves parliament, and the military was quick to say it now controls legislative affairs in Egypt, actions that raised the prospect of renewed mass street protests.
The dizzying developments sent shock waves across Egypt just 16 months after a popular uprising toppled former President Hosni Mubarak and two days before Egyptians go to the polls to elect a new president. They also raised fresh questions among many about whether the military -- long the most powerful force in Egyptian life -- would ever yield power.
"Egypt is entering into a very dangerous stage, and I think a lot of people were caught by surprise," said Shadi Hamid, director of research at the Brookings Doha Center. "We knew it was getting bad, but we didn't think it was getting this bad."
Opposing views on ruling in Egypt
Egypt: Mubarak in 'full coma'
2008: Hosni Mubarak in his own words
Egyptian street fighter vies for change
He called the court rulings the "worst possible outcome" for Egypt and said the transition to civilian rule was "effectively over."
In one ruling Thursday, the Supreme Constitutional Court found that the rules governing January's parliamentary elections were invalid, triggering the dissolution of parliament.
In the second, the court rejected a law barring former regime members from running for president, clearing the way for Ahmed Shafik, the last prime minister under former Mubarak, to run in this weekend's runoff election. He faces Mohamed Morsi, an Islamist candidate favored by many in the Muslim Brotherhood and their allies and supporters.
The military leadership, the Supreme Council of the Armed Forces, also announced it would name a 100-strong panel by Friday that will draw up a new constitution for the country.
The moves came only hours after a decree was issued giving the military extended powers of arrest over civilians.
That decree ushered in de facto martial law, observers said, just two weeks after many Egyptians celebrated the demise of a decades-old emergency law that gave authorities broad leeway to arrest citizens and hold them indefinitely without charge.
Eric Trager, a fellow at the Washington Institute for Near East Policy, characterized the situation as a "soft coup in Egypt."
What is the Muslim Brotherhood?
The military leadership's action "really signals it's moving very sharply against the political process," Trager said. Its actions are also piling on the pressure on the Muslim Brotherhood, the Islamist group whose political arm, the Freedom and Justice Party, is headed by Morsi, he said.
"The question is whether that's going to lead the Muslim Brotherhood to up its own confrontation with the military or whether the Brotherhood will use it as an opportunity to seek some kind of accord with the military," he said.
Right now, the military and the Muslim Brotherhood have ongoing conversations, but it is not yet clear what they may produce, Trager said.
The Brotherhood could seek a deal where Morsi is made prime minister if Shafik wins the presidency, he said.
But if the Muslim Brotherhood commits itself to confrontation in the form of street protests -- thereby threatening a second revolution -- that could be a game-changing situation, Trager said.
Experts are watching to see whether the decision reignites the huge street demonstrations that drove Mubarak from power in February 2011.
It's not yet clear whether ordinary Egyptians, many of whom are exhausted by the long months of uncertainty, will consider the ruling an attempt by the ruling elite to snuff out the promise of democracy fought for in Tahrir Square.
The real obstacle to democracy in Egypt
Analysts say the Supreme Constitutional Court is considered partial to the regime headed by Mubarak, in which the military played a pivotal role -- and its perceived failure to maintain judicial independence could spark renewed anger.
"Essentially, no, the court is not neutral," said Steven Cook, a senior fellow for Middle Eastern Studies at the Council on Foreign Relations. "It is very much part of the old regime. I think you are going to see people pouring into the streets and demand change."
One young Cairo woman outside the court expressed the frustration felt by many protesters. "SCAF has been suppressing our protests, suppressing the youth movements on the ground, they have been arresting thousands of us," she said, referring to the Supreme Council of the Armed Forces.
But Amre Moussa, who was a foreign minister under Mubarak, was chief of the Arab League, and most recently a presidential candidate, played down the impact of the ruling on parliament.
"It is not a political move or a decision by the SCAF, it is a legal matter that has been referred to the tribunal, by individuals, by other parties," he told CNN's Christiane Amanpour.
As for the wrangling over who will write the new constitution, Moussa said it is not of crucial importance.
"The current constitutional declaration is enough to give the president the powers he needs," he said. "I believe that the president, once elected, knows exactly the powers he will use."
Photos: A look back at Egypt's uprisings
Following the court decision, Egypt's interim military rulers declared full legislative authority, creating anxiety and uncertainty about the country's future.
It was just on January 23 -- two days before the anniversary of the birth of a revolution that eventually toppled Mubarak -- when the military surrendered legislative powers to the first parliament in the country's history to be dominated by Islamists, whose two parties won about 70% of the seats in the lower house.
The military is considered by many to be a bulwark against the power and influence of Islamists in Egypt.
And some who fear the Muslim Brotherhood has gained too much strength may welcome this knock to the confidence built from its successes in the parliamentary vote.
"With parliamentary elections, there was this sense that the Brotherhood could now go for broke," Cook said. "They seem to have been outmaneuvered by the military and courts and associated supporters of the old regime. It may be time to make a deal to preserve themselves to fight longer."
All eyes will be on the conduct and outcome of the runoff this weekend.
Taken together, the military leadership's actions indicate "there's a high likelihood of Shafik being aided to victory by the military," Trager said.
But Khaled Fahmy, a professor at American University in Cairo, told Amanpour that people are "very confused" and split over who to back.
"Ahmed Shafik made a very powerful speech today, he tried to calm many people," he said. "But there is a lot of sympathy I think now for the Muslim Brotherhood -- there's a lot of fear of what Shafik is capable of doing.
"And because things now have become so clear and the gloves are off, people see what the military is intent on doing. Yesterday's ruling by the minister of justice giving the military police these excessive rights, this is a serious militarization of Egyptian society, that we made the revolution against."
Fahmy said he believes blunders by the Muslim Brotherhood are partly to blame for its current weakened position.
The Brotherhood has failed to get results in parliament, where its lawmakers have been "cocky" toward liberal forces, he said, and also failed to realize just how deep the military's influence runs through Egypt's intelligence and security services -- the so-called deep state.
The "legal coup" pulled off by the military is just the latest front in a long-running battle for dominance between the two sides, he said.
"This has been in the offing for not only months, but for years and years," Fahmy said.
"The events of today and indeed the past few weeks have shown very clearly the determination by SCAF to oust the Muslim Brotherhood altogether, and to deny it serious victories that it had won legitimately through by ballot boxes -- and today is the culmination of that struggle."
Are you there? Share photos and videos with us on CNN iReport.
A wild election weekend for Egypt, France and Greece
Mubarak clings to life in Cairo hospital
Saving the sound of the Middle East