The Supreme Court ruled he had “ceased to be the prime minister of Pakistan”.
In April, the Supreme Court convicted Mr Gilani of failing to pursue corruption charges against President Asif Ali Zardari.
The legal case is part of a bitter feud between Pakistan’s civilian government and the judiciary.
In April, Mr Gilani was given only a token sentence and spared a jail term.
Tuesday’s court ruling disqualified him from office and from parliament.
“Since no appeal was filed [against the 26 April conviction]… therefore Syed Yousuf Raza Gilani stands disqualified as a member of the Majlis-e-Shoora [parliament],” Chief Justice Iftikhar Chaudhry told a packed courtroom.
He added: “He has also ceased to be the prime minister of Pakistan… the office of the prime minister stands vacant.”
The court backdated the disqualification to 26 April, raising questions over decisions Mr Gilani has made in office since then.
It is not clear what next steps Mr Gilani may take – or whether his removal means the fall of the government.
The BBC’s Orla Guerin in Islamabad says senior leaders of the governing Pakistan People’s Party are in emergency session with Mr Gilani and President Zardari.
The party has the necessary majority in parliament to elect a successor to Mr Gilani.
Our correspondent says there will be great political uncertainty following the ruling, and some people will see it as another round in the clash of institutions taking place in Pakistan.
During Tuesday’s hearing, Attorney General Irfan Qadir accused the court of behaving unlawfully.
He said the prime minister was not answerable to the court in regard to his professional duties and that justices had violated an article of the constitution in their ruling.
Mr Gilani decided not to appeal against the contempt conviction in April. His lawyer said he feared a more unfavourable decision from the court if he did so.
The pursuit of the contempt case by Supreme Court judges is widely seen as an attempt at meddling in the country’s politics. Many believe the judiciary is being backed by the military.
The charges against President Zardari date back to the 1990s when his late wife Benazir Bhutto was prime minister. They were accused of using Swiss bank accounts to launder bribe money.
President Zardari has always insisted the charges against him are politically motivated.
The Supreme Court ordered Mr Gilani’s government to write to the Swiss authorities to ask them to reopen the cases against Mr Zardari.
But Mr Gilani refused, saying the case had been closed by a Swiss judge “on merit” and the president had constitutional immunity.
- June 19, 2013 Prime Minister Muhammad Nawaz Sharif at Neelum Jhelum
- June 19, 2013 PML-N suspends Nighat’s membership
- June 19, 2013 پنجاب بجٹ 14-2013: چھوٹے کاشتکاروں کے لیے بائیوگیس اور شمسی توانائی سے چلنے والے ٹیوب ویلوں کا اعلان
- June 19, 2013 اشرافیہ سے ٹیکس لے کر غریب اور کم وسیلہ طبقات کی فلاح پر خرچ کریں گے: شہباز شریف
PML-N on Facebook
Subscribe Our Newsletter
Pakistan Muslim league (N) USA