BEIRUT – On Syria's front lines, Al-Qaida fighters and more mainstream Syrian rebels have turned against each other in a power struggle that has undermined the effort to topple Syrian President Bashar Assad.

After violent clashes and the assassination of two rival commanders, one of whom was beheaded, more moderate factions are publicly accusing the extremists of trying to seize control of the rebellion.

The rivalries — along with the efforts by extremist foreign fighters to impose their strict interpretation of Islam in areas they control — are chipping away at the movement's popularity in Syria at a time when the regime is making significant advances on the ground.

"The rebels' focus has shifted from toppling the regime to governing and power struggles," said a 29-year-old woman from the contested city of Homs. "I feel that the lack of true leadership is and has always been their biggest problem." She spoke on condition of anonymity, fearing retaliation from the fighters and the regime.

The infighting, which exploded into the open in the country's rebel-held north in recent days, is contributing to a sense across many parts of Syria that the revolution has faltered. It threatens to fracture an opposition movement that has been plagued by divisions from the start.

The moderates once valued the expertise and resources that their uneasy allies brought to the battlefield, but now question whether such military assets are worth the trouble — not to mention the added difficulty in persuading the West to arm them.

"We don't want foreign fighters. We have enough men and we want them out of Syria," said Brig. Gen. Salim Idris, head of the Supreme Military Council of the Free Syrian Army (FSA), an umbrella group for dozens of brigades.

In blunt comments in an interview with Al-Arabiya on Monday, Idris, a secular-minded army defector who has the backing of foreign powers, accused members of the Islamic State of Iraq and the Levant of being regime agents and criminals.

That group, formed in April and made up of Al-Qaida's branches in Iraq and Syria, has taken on an increasingly dominant role in the Syrian civil war. Many of its fighters are north Africans, Iraqis, Afghans and Europeans who have flocked to Syria to join the overwhelmingly Sunni uprising against Assad.

Gunmen from the Islamic State of Iraq and the Levant were behind the killings of the two rebel commanders, the highest-profile casualties of the growing tensions between jihadi fighters and Western-supported rebels.

Kamal Hamami, known as Abu Basir, served in the Supreme Military Council. Activists say he was shot late Thursday in a clash that erupted after militants tried to remove a checkpoint he set up on the Jabal al-Turkoman mountain in the coastal province of Latakia. Two of his men were seriously wounded.

Also last week, members of the extremist group killed Fadi al-Qish, the local commander of a group affiliated with the mainstream FSA. The fatal attack took place in the village of Dana in the northern province of Idlib near the Turkish border. Activists say the militants decapitated al-Qish and another fighter and left their severed heads on the ground as a lesson to other rebels who challenge their rule in the area.

The executions have enraged FSA commanders, who are demanding the killers be handed over to stand trial.

Activists also say extremists have recently been sweeping into villages previously controlled by the FSA, taking over resources such as bakeries, oil wells and water pumps to secure people's loyalties.

But what alienates the general population is the brutality. The extremists have carried out summary executions, public floggings and mass arrests, fueling the backlash against them. In one prominent case in Aleppo last month, Al-Qaida-linked militants executed a 15-year-old boy, Mohammad Qattaa, accusing him of being an "infidel" for mentioning the prophet Muhammad in vain.

Some FSA commanders are trying to tamp down the dispute with the Al-Qaida militants, mindful of the damage the infighting has done to their cause. "Their actions are despicable, but we will not be drawn into a fight with them," said one commander, who declined to be named so as not to aggravate the situation.

FSA spokesman Loay al-Mikdad was less delicate.

"I think they should come out in public and tell the Syrian people why they are in Syria. Is it to fight Bashar Assad or to impose a specific agenda on the Syrian people?" he asked.