Libya’s militias have captured most government ministries in the capital, Tripoli, the government has said.
Armed men had blocked staff from entering offices, it added in a statement.
On Sunday, militiamen seized the U.S. embassy with videos showing cheering men diving from a balcony into a swimming pool.
Libya has been hit by anarchy since Col. Muammar Gaddafi was overthrown by the NATO-backed militias in 2011.
The militias have been fighting for power among themselves since then, with an Islamist-linked group, Libya Dawn, capturing Tripoli last week.
Senior government officials and the elected parliament moved to the eastern city of Tobruk, more than 1,000 kilometers (620 miles) away, last month.
“We announce that most ministries, institutions and state bodies in the capital Tripoli are out of our control,” the government statement said.
The U.S. and other countries evacuated their embassy staff in July, as fighting escalated for control of Tripoli.
Libya’s central bank and the state oil company are based in the city.
Prime Minister Abdullah al-Thinni and his cabinet resigned last week so that the parliament, elected in July, could choose a new government.
The elections were the second since Gaddafi was killed in the 2011 revolution, but hopes that the polls would help restore stability in Libya have failed to materialize.