Libyan Prime Minister Ali Zeidan has been released, several hours after being seized by militiamen, say government sources.
Mr Zeidan was taken from his hotel in the capital, Tripoli, by armed men in the early hours of Thursday morning.
A former rebel group loosely allied to the government said it had arrested Mr Zeidan on the orders of the prosecutor general.
The justice ministry had denied an arrest warrant was issued.
-BBC
READ MORE
Spain awaits key vote on Sanchez as right eyes power
Netanyahu offers to rotate Israeli premiership with Eisenkot
Algeria condemns Ukraine war 'spillover' after Libya drone attack
School roof collapse kills teacher, 21 children in NW Pakistan