Libya's parliament has rejected an emergency government proposed by Prime Minister Mustafa Abu Shagur, forcing his dismissal.
Mr Shagur had called for the formation of an emergency government, consisting of just 10 ministries.
The General National Congress voted 125 to 44 against the proposal. Seventeen members abstained.
The Congress now has three to four weeks to elect a new premier.
Mr Shagur was the country's first elected prime minister after the overthrow and killing of Muammar Gaddafi last year.
He had served as deputy prime minister for more than a year under interim leader Abdurrahim al-Keib.
His second and final offer consisted of just 10 ministries, as opposed to the 29 he offered last week, the BBC reports.
His first cabinet line-up was rejected late on Thursday on the basis that it was not representative of important regions and lacked qualified members.
During the debate, protesters - mostly from the towns of Zawiya and Zuwara - stormed the Congress building in the capital Tripoli, calling for his resignation.
Mr Shagur had initially aimed for a unity government and what he described as people with merit to work with him. However, he said that when he consulted with political parties, some had pursued their own agendas.