RIYADH (Reuters) - A joint team of Syria’s political and armed opposition will meet the government next month for talks seeking a political solution to nearly five years of conflict, the chairman of a Saudi-hosted opposition conference said on Friday.

A man rides a bicycle past a poster depicting Syria's President Bashar al-Assad near the new clock square in the old city of Homs, Syria December 7, 2015. REUTERS/Omar Sanadiki -

More than 100 members of Syria’s opposition parties and rebel fighting groups agreed at the end of two days of talks in Riyadh to work together to prepare for peace talks with President Bashar al-Assad’s government.

But the final hours of the meeting, which excluded Islamic State and Nusra Front fighters as well as the main Kurdish force controlling large parts of northern Syria, were overshadowed by protest from the powerful insurgent group Ahrar al-Sham.

In a statement, it said it had withdrawn from the Riyadh meeting, objecting to what it said was a prominent role given to the mainly Damascus-based political opposition group, the National Coordination Body for Democratic Change, which it said was closer to Assad than to the opposition.

It also said rebel fighters had been under-represented at the talks and their voices largely ignored. However a copy of the final statement, seen by Reuters, had been signed by the Ahrar al-Sham delegate.

Nevertheless, its withdrawal - however brief - highlighted enduring rifts among Assad’s enemies which have bedevilled Western and Gulf Arab efforts to rally enough political and military pressure on the president to force him to step down.

Abdulaziz al-Sager, a Saudi academic who chaired the Riyadh talks, said the opposition would meet government officials in the first 10 days of January, the first such talks in two years aimed at ending a bloody civil war which has drawn in forces from the United States, Russia, Europe and the Arab world.

“There will be a meeting decided by (United Nations envoy Staffan) de Mistura in January. A meeting between the opposition and the Syrian regime to go to a transitional period,” he said, in comments translated at a news conference.

“This will take place in the first 10 days of January.”

A statement at the end of the two-day conference said Assad should leave power at the start of a transitional period, and called for an all-inclusive, democratic civic state. It also committed to preserving state institutions.

The opposition was willing to enter talks with Syrian government representatives and to accept a U.N.-supervised ceasefire, the statement said.

CONFIDENCE-BUILDING

The meeting came amid escalating conflict in Syria, pitting the army and allied militias including Lebanese Hezbollah fighters backed by Iran and Russia against competing rebel and jihadi fighters, who include Arabs and Kurds.

The Riyadh meeting called on the United Nations to pressure the Syrian government to make a series of confidence-building moves before peace talks start, including suspending death sentences against opponents, releasing prisoners and lifting sieges.

Monzer Akbik, a member of the National Coalition opposition group, said the conference agreed to set up a 32-member secretariat to oversee and supervise peace talks. The statement said that body would select the negotiating team.

Participants also committed to a political system which “represents all sectors of the Syrian people”, and would not discriminate on religious or sectarian grounds - in a gesture towards minority Alawite, Christian and Kurdish populations.

U.S. Secretary of State John Kerry welcomed the declaration. “While this important step forward brings us closer to starting negotiations between the Syrian parties, we recognize the difficult work ahead,” he said.

International efforts to resolve the conflict have been lent added urgency by a wave of deadly attacks across the world claimed by the Iraq- and Syria-based Islamic State and by a massive flow of refugees into Europe.

Major powers agreed in Vienna last month to revive diplomatic efforts to end the war, calling for peace talks to start by January and elections within two years.

NO PART FOR ASSAD

The demands that Assad and his lieutenants should play no part in a political transition marked a tougher stance than that of several Western countries which back Assad’s opponents. The United States, France and Britain all called for Assad to step down after protests broke out against his rule in March 2011.

Although they all say Assad ultimately must go, they have been less specific about the timing of any departures, indicating that they could accept his staying on in an interim period.

Assad’s fate was one of several questions left unresolved at the Vienna meeting last month which was attended by Russia, the United States, European and Middle Eastern countries including Saudi Arabia and Iran, which back opposing sides in Syria.

Saudi Arabia is a main backer of the rebels along with Turkey and Western countries. Iran and Russia support Assad.

Iran has openly criticized the decision by Saudi Arabia to hold the talks, saying they were designed to harm the Vienna process. On Thursday, Deputy Foreign Minister Hossein Amir-Abdollahian said some groups linked to the Islamic State militant group were involved in the Riyadh meeting.

Russia launched air strikes in Syria 10 weeks ago, helping the Syrian army - backed by Iranian troops, Hezbollah fighters and allied militia - to contain rebel advances.

Russia says it is bombing Islamic State militants, who control large areas of eastern Syria and western Iraq, but Western and Arab states which have been carrying out air strikes against Islamic State for more than a year say the Russian jets have mainly hit other rebel forces in the west of Syria.

Moscow’s intervention has not swung the war decisively Assad’s way and several Western-backed rebel groups, some of whom were represented in Riyadh, have been emboldened by the increased flow of foreign-supplied anti-tank missiles which have helped stem parts of the army’s counter-offensive.