Libya's U.N.-backed Prime Minister in Tripoli Fayez Al-Sarraj received phone call from France's president, Emmanuel Macron, on Monday.
A statement on the Tripoli-based government's Facebook page said the two discussed security developments and situation in Tripoli after the escalation of violence.
Macron spoke with Al-Sarraj to voice his "total opposition to the offensive against the capital and the endangering of civil lives", the unity government said.
The statement added that Al-Sarraj confirmed "during the call that Haftar had one option: to stop the military operations immediately and to withdraw."
The French presidency said in a statement that Macron had also been in contact with Haftar and said it was "imperative" that the fighting ends immediately.