A defector from the Gadaffi regime, Ali Zidan has been elected the new Prime Minister of Libya by the national congress.
Mr Zidan, an independent, won 93 votes – a majority among those present. He beat a candidate favoured by the Justice and Construction party – which is linked to the Muslim Brotherhood.
The president of the national assembly, announcing his victory, asked Mr Zidan to propose a cabinet within two weeks.
The previous PM, Mustafa Abu Shagur, was dismissed a week ago after failing to form a government.
Mr Zidan was a career diplomat for Colonel Muammar Gaddafi before defecting in 1980 and joining the opposition in exile.
He served the former transitional government as its Europe envoy.