Egypt's highest court declared the parliament invalid Thursday, and the country's interim military rulers promptly declared full legislative authority, triggering fresh chaos and confusion about the country's leadership.
The Supreme Constitutional Court found that all articles making up the law that regulated parliamentary elections are invalid, said Showee Elsayed, a constitutional lawyer.
The ruling means that parliament must be dissolved, state TV reported.
Parliament has been in session for just over four months. It is dominated by Islamists, a group long viewed with suspicion by the military.
The Supreme Council of the Armed Forces, in control of the country since Mubarak's ouster, said that it now has full legislative power and that by Friday it will announce a 100-person assembly that will write the country's new constitution.
The Muslim Brotherhood, Egypt's largest Islamist party, said SCAF leaders were taking matters into their own hands "against any true democracy they spoke of."
The court also ruled that former Prime Minister Ahmed Shafik, the last prime minister to serve under ousted President Hosni Mubarak, may run in a presidential election runoff this weekend.
The court rejected a law barring former members of Mubarak's regime from running in the election.
The runoff Saturday and Sunday pits Shafik against Mohamed Morsi, head of the Freedom and Justice Party, which is the Muslim Brotherhood's political arm.
Shafik, at a news conference in Cairo, praised the high court for rejecting the rule preventing former regime members from running. "The age of settling accounts is over and gone. The age of using the law and the country's institutions against any individual is over," he said.
Mahmoud Ghozlan, a spokesman for the Muslim Brotherhood, said a court ruling to ban Shafiq was unnecessary.
"We will put all our efforts into the upcoming elections so that Morsi wins and we avoid the rebirth of the old regime overnight," he said.
Yet some Freedom and Justice members, including parliamentarian Mohamed el-Beltagy, called the rulings "a complete coup d'etat through which the military council is writing off the most noble stage in the nation's history."
Ashraf Khalil, an Egyptian-American journalist and author of the book "Liberation Square," predicted that the Muslim Brotherhood, which has "shied away" from "straight-up confrontation" with the military leadership, won't "go to war over this."
"The activist community, on the other hand, they are very upset," he said.
Hossam Bahgat of the Egyptian Initiative for Personal Rights decried the court's decisions in a tweet.
"Egypt just witnessed the smoothest military coup," said Bahgat "We'd be outraged if we weren't so exhausted."
Perhaps guarding against more popular unrest, riot police and military personnel, some in armored vehicles, were outside the court ahead of the rulings. Military intelligence officers were also present.
After the ruling about Shafik was announced, a crowd of citizens shouted their disapproval. Military police moved to block the road in front of the court -- a major Cairo artery.
Shadi Hamid, director of research at the independent Brookings Doha Center, called the court rulings the "worst possible outcome" for Egypt and declared that he felt the transition to civilian rule is "effectively over."