The two warring governments in Libya signed on Thursday a United Nations (UN)-sponsored agreement to form a national unity government, which western powers say will help in fighting DAESH and make the country more stable.
The General National Assembly is based in Tripoli while the rival House of Representatives is based in the easten coastal cities of Benghazi and Tobruk.
However, the agreement was resisted by the two governments during a meeting in Malta last Tuesday considering it a risk to found a new government in Libya.
Within the chaos in the country, the terrorist group of DAESH got the chance to expand power - taking control of the city of Sirte - which is raising international fears.
"It is in the nature of this agreement that nobody is entirely happy. This is always like this in difficult situations," UN envoy Martin Kobler told reporters after a briefing in the east.
"We have only 75 percent of people who are happy with it. But I think it's a good start."
The representatives of both sides met at the Moroccan coastal town of Skhirat to reach the deal.
"We have reached an agreement, but the biggest challenge now is to implement it," said Salah Huma, a parliament member and negotiator for the eastern government.