Pakistan Prime Minister Imran Khan is facing the no-trust motion at the weekend after the Supreme Court ruled Thursday that parliament had been illegally dissolved.
Khan's coalition lost its majority in the national assembly last week, but he avoided being dismissed when the deputy speaker blocked a no-confidence motion against him and the president dissolved parliament and ordered fresh elections.
"All actions taken are of no legal effect and quashed," the Supreme Court said after hearing four days of argument on the matter.
"The national assembly continues to remain in session," it added, with officials saying it would sit again Saturday.
The court's judgement was broader than expected after the chief justice said earlier this week they would only rule on the legality of the no-confidence motion being blocked.
The decision -- which the court said was unanimous -- was met with jubilation by opposition supporters in the capital, with packed cars racing through the streets, sounding their horns.