Tripoli: Libya's supreme court on Thursday invalidated the internationally recognised parliament, setting the stage for deepening political chaos in the violence-wracked North African nation.
The ruling, which cannot be appealed, prompted celebratory gunfire in the capital Tripoli where Islamist-led militias have been in control since August.
The Tripoli court also nullified a constitutional amendment that led to elections on June 25, thereby invalidating the polls and all decisions that resulted from them.
The internationally supported government of Prime Minister Abdullah al-Thani is sheltering in the remote eastern town of Tobruk near the Egyptian border and has almost no control over Libya's three main cities.
The legislature's legal committee called an emergency meeting to review the court ruling.
"Lawmakers will not recognise a verdict decided under the gun," Tobruk-based parliamentarian Issam al-Jehani wrote on Facebook.
Libyan authorities have struggled to assert control across a country awash with weapons and powerful militias that ousted longtime autocratic leader Moamer Kadhafi in a 2011 revolt.
There was no immediate response to the ruling from the adminstration led by Thani, who was appointed prime minister in March by an interim parliament that has since been dissolved.
He submitted his resignation in August, but the elected parliament asked him to form a new government.
The supreme court had been asked by an Islamist lawmaker to rule on the constitutionality of the legislature that approved Thani's government, one of two rival administrations in the oil-flush country.
Abderrauf al-Manai, who with other Islamist lawmakers has boycotted the parliament's sessions in Tobruk, argued that the legislature was in breach of the constitution because it was sitting in neither Tripoli nor second city Benghazi.
He had also argued that the parliament had exceeded its authority in calling for foreign military intervention after the militia takeover of the capital.
"I hope all parties will respect the decision of the court," Manai told television broadcaster Al-Nabaa.
Former rebels who fought Kadhafi have formed powerful militias and seized control of large parts of turmoil-gripped Libya over the past three years.
Most lawmakers who are boycotting the internationally recognised parliament support Fajr Libya, an Islamist-led militia alliance that has formed a parallel government known for its Islamist sympathies.