SHAFAQNA -Â A UN-proposed peace deal for Libya was signed late SaturdayÂ in MoroccoÂ by some parties to the countryâ€™s ongoing political crisis, including representatives of Libyaâ€™s Tobruk-based parliament.

Representatives of the Tripoli-basedÂ General National Congress (GNC), however, which demands the amendment of some of the agreementâ€™s terms, did not take part in the signing.

The deal calls for the establishment of a national unity government and the granting of legislative authority to the Tobruk-based assembly.

Bernardino Leon, the UNâ€™s special envoy for Libya, praised the deal, describing it as a step towards ending Libyaâ€™s four-year-old political crisis.

In a reference to Libyaâ€™s Tripoli-based government, Leon went on to stress that â€œthe door was openâ€ for the countryâ€™s other political factions to sign on to the agreement.

Since the ouster and death ofÂ Libyan strongman Muammar Gaddafi in late 2011, rival Libyan militias have frequently locked horns, bringing violence to Libya’s main population centers, including capital Tripoli and the eastern city ofÂ Benghazi.

The sharp divisions have yielded two rival seats of government in the country, each of which has its own institutions and military capacities.

Two assemblies currently vie for legislative authority in Libya: the Tobruk-basedÂ House of Representatives and the GNC, which â€“ although its mandate ended last year â€“ continues to convene in Tripoli.