Fighters of the jihadist group Jabhat al-Nusra stand on top of a pick-up mounted with a machine gun during fighting against the regime forces in the Syrian village of Aziza, on the southern outskirts of Aleppo. (AFP/Getty Images)

GAZIANTEP, Turkey — Shortly before its operatives killed 14 Iraqi Shiite children in a school bombing this month, the group once known as al-Qaeda in Iraq sent guerrillas into northern Syrian villages with orders to reopen local Sunni classrooms. In a series of early fall visits, the militants handed out religious textbooks along with backpacks bearing the group’s new name: the Islamic State of Iraq and Syria.

A four-hour drive to the east, a rival al-Qaeda faction called ­Jabhat al-Nusra was busy setting up a jobs program in Ash-Shaddadi, a desert town it has held since February. The Islamists restarted production at an oil field that had been idled by fighting, and they fired up the town’s natural gas plant, now a source of income for Ash-Shaddadi and its new rulers.

The two rebel groups, with their distinct lineages to the terrorist network founded by Osama bin Laden, have become the focus of Western fears that jihadist influences within Syria’s rebel movement are rising. Two and a half years after the conflict in the country started, Islamists are carving out fiefdoms and showing signs of digging in.

“We all have the same aqidah [Islamic creed] as al-Nusra or the Islamic State,” said a 23-year-old Jordanian Palestinian who gave his name as Abu Abdallah in an interview in Jordan and who fights for a rebel brigade allied with the Islamists. “The aim is to free the Muslim lands and have the Islamic flag there.”

The prominence of the two groups — as fighters, as recruiters and, more recently, as local administrators — appears to have accelerated even as the Obama administration seeks to bolster moderate and secularist Syrian rebels with new weapons and training. Multiple independent studies, as well as assessments by Western and Middle Eastern intelligence officials, show the hard-line Islamists surging ahead by almost every measure, undermining Western efforts to find a democratic alternative to Syrian President Bashar al-Assad.

The al-Qaeda affiliates have clashed with other rebel groups, and, occasionally, with each other, and their use of foreign fighters and attempts to impose an ultraconservative ideology have alienated some Syrians accustomed to secular rule.

“The situation is so bad,” said Mohammed Abdelaziz, an activist in the north-central city of Raqqah, who says the Islamic State of Iraq and Syria — popularly known as ISIS — criminalized the use of tobacco and carried out public executions. “A lot of people have just escaped the city, and many more are planning to.”

But other Syrians have embraced the jihadists and welcomed the return of civil order in towns devastated by months of fighting.

A 22-year-old Syrian fighter who identified himself as Abu Bahri said in an interview here that about 100 people from his home town of Azaz joined ISIS after becoming frustrated with the inefficiency of the more moderate Northern Storm brigade, which was in charge of the town. And the failure of the West to end the bloodshed has strengthened the message of extremists. “I support them because they hate the U.S., they hate the West, which has cheated us,” said Mohammed Saeed, a humanitarian aid worker from Palmyra now based in the Turkish border town of Reyhanli.

“In Syria, [the Islamists] have a level of control they never enjoyed in Iraq,” said Aymenn Jawad al-Tamimi, an expert on Syrian jihadist groups at the Middle East Forum, a nonprofit research organization in Washington. In addition to their fighting and organizing skills, he said, they appear to have absorbed lessons from Iraq, where al-Qaeda’s indiscriminate attacks against civilians horrified and repulsed ordinary Iraqis and all but destroyed the terrorists’ support network.

“They’ve learned that you do need some outreach to locals; you can’t just entirely exploit them,” Tamimi said. A key part of that strategy, he added, is “outreach to children.”

In the competition for local sympathies, the advantage belongs to Jabhat al-Nusra, an offshoot of al-Qaeda’s Iraq branch that has publicly aligned itself with Ayman al-Zawahiri, bin Laden’s longtime deputy and his successor as the leader of al-Qaeda. Since its founding early last year as a Syrian rebel group, Jabhat al-Nusra has played down its connections to the international terrorist movement while seeking to limit collateral damage from the suicide attacks and roadside bombings that are its preferred weapons against Syrian government forces.

A much more difficult challenge confronts ISIS — the rebranded terrorist group that is behind a campaign of savage attacks on Shiite markets, schools and villages in neighboring Iraq. The group’s 8,000-strong Syrian contingent boasts a larger proportion of foreign jihadists than any other rebel group, according to analysts. In just six months of operations in the country, it has frightened and enraged Syrians with its extreme interpretation of Islam — including beatings and executions for perceived religious infractions.

Yet, in recent weeks, ISIS also has sought to reform its image by reopening schools and delivering food, medicine and energy to war-weary towns and villages. It has sponsored ice-cream-eating contests and tug-of-war competitions for children and built training camps where teens learn fighting skills and participate in singalongs calling for the destruction of Assad and his allies, the “lowlifes and infidels.”

Some Syrians who disapprove of ISIS’s religious zeal said they would applaud the presence of the disciplined, battle-hardened force if it shifted the momentum in a fight that has appeared deadlocked for months.

“If the Islamic State were organized and didn’t interfere in people’s lives, we would welcome them,” said Mahmoud al-Hassan, a 30-year-old trader from the northern city of Aleppo, who was visiting a hospital in Turkey after his cousin was shot by a sniper.

Shared jihadist vision

To Western governments, however, the jihadists’ entrenched position in Syria is another ominous turn in the conflict. U.S. and Middle Eastern officials say Jabhat al-Nusra and ISIS are magnets for much of the foreign cash and the majority of the foreign fighters streaming into Syria.

What troubles Western observers is not the groups’ fighting prowess, however, but their shared vision of a jihad that extends beyond Assad’s ouster. While other rebels are fighting to remove the Syrian dictator, former and current U.S. and Middle Eastern officials say, the al-Qaeda groups are transforming the conflict into a symbolic struggle against the West and Israel, using words and images that resonate with like-minded Muslims from the Arab Peninsula to Western Europe.

Abu Khaled, a 26-year-old ­Lebanon-born fighter, said the battlefield in Syria has expanded because of groups such as ISIS, inspiring hope that Arab Spring uprisings across the Middle East will give rise to a broader Islamic revolution in which all secular and Western-backed leaders will be replaced.

“We always said one of the main problems are the rulers, and now, see how one after the other is disappearing,” said Khaled, who spoke on the condition that his full name not be revealed. “And it won’t stop until we get our aim.”

The formal titles adopted by both al-Qaeda groups include the Arabic term for greater Syria — al-Sham — that radical Islamists use to link their movement to the ancient Islamic caliphate that ruled a vast swath of the Middle East, with Damascus as its capital. The use of the term, the jihadists say, evokes an image of a future Middle East in which present-day boundaries and governments have been replaced by a single Islamic state, encompassing the territories of Syria, Lebanon, Iraq, Jordan and Israel.

It is the groups’ appeal to a greater jihad that explains why foreign volunteers continue streaming into Syria in numbers that surpass those seen during the conflicts in Afghanistan, Bosnia or Iraq, said Bruce Riedel, a former CIA officer and adviser on the Middle East to four U.S. administrations.

“Syria has become the most important destination for aspiring jihadists ever, because it is the heart of the Muslim world on the border of Palestine,” said Riedel, who is a senior fellow at the Brookings Institution. “For jihadis, it is the road to Jerusalem at last.”

Battling for power

To terrorism experts, it was inevitable that a militant group aligned with al-Qaeda would arise from the brutal sectarian violence of Syria’s civil war. How the conflict came to feature two competing al-Qaeda factions is a story that reflects the power struggles within the jihadist movement in the decade after the Sept. 11, 2001, terrorist attacks.

Both groups trace their roots to the organization once commonly known as al-Qaeda in Iraq, the terrorist faction that was founded by the Jordanian Abu Musab al-Zarqawi and was notorious for a string of beheadings and spectacular bombings during the U.S. occupation of Iraq. After Zarqawi’s death in 2006, the organization was nearly destroyed through a combination of U.S. military pressure and a near-universal rejection of its tactics by Iraqi Sunnis.

The group changed its name after Zarqawi’s death, becoming the “Islamic State of Iraq,” but it never fully recovered. Only a handful of cells were active in Iraq when the start of the Syrian uprising offered a chance for the group to reassert itself, on a different stage.

The Islamic State sent a stream of operatives into Syria in the early months of the uprising, and in early 2012, it backed the formation of a new rebel group, Jabhat al-Nusra li-Ahl al-Sham, or the Support Front for the People of Greater Syria. Its leader, Abu Mohammad al-Golani, had been a senior member of the Iraqi terrorist organization, and he has acknowledged receiving start-up money from his comrades in Baghdad.

Citing the group’s ties to al-Qaeda, the State Department labeled Jabhat al-Nusra a terrorist organization in December. But in public statements, Golani played down Jabhat al-Nusra’s Iraqi origins and insisted that his group’s sole focus was defeating the Assad government.

Still, Jabhat al-Nusra quickly distinguished itself from other rebel groups through its use of foreign fighters as well as its military tactics and weapons, perfected during the Iraq conflict: suicide bombers and improvised explosive devices, or IEDs.

Meanwhile, tensions were quietly building between Jabhat al-Nusra and its parent organization, and they spilled into the open early this year. On April 9, the Iraq group announced yet another name change — this time to the Islamic State of Iraq and Syria — and claimed Jabhat al-Nusra as the organization’s Syrian branch. A day later, Golani fired back with a statement denying any connection with the Iraqis and swearing allegiance to Zawahiri, the leader of al-Qaeda’s global network.

“Syria is such a mess that even al-Qaeda is split,” said Kadar Sheikhmous, a Syrian activist based here in Gaziantep, a city in southern Turkey.

Zawahiri was called upon to mediate the dispute. The gray-bearded Egyptian issued a statement in June declaring that the two groups were independent branches of al-Qaeda. Then he called on both to cooperate.

“Stop any verbal or physical attack against the other side,” Zawahiri wrote in an open letter to the groups.

Ideological spats continue on social-media Web sites such as Twitter and Facebook, and the two groups compete for resources.

Yet, despite the leadership rift and differences over tactics, the two jihadist factions now cooperate more often than they clash, according to U.S. and Middle Eastern experts who have studied both groups. In some contested cites, such as Aleppo, the two groups fight as separate entities, sometimes coordinating tactics. In other areas, such as rebel-held Raqqah, they have been virtually interchangeable, with allegiances constantly shifting, experts say.

“They operate in parallel to one another,” said Aaron Zelin, an expert on jihadist groups with the Washington Institute for Near East Policy. “They have different command structures, and ISIS uses more foreign fighters — about 30 to 40 percent of its forces, versus al-Nusra’s 10 percent. But you can’t say that one is that different from the other. They swim in the same ideological waters.”

Warrick reported from Washington and Mekhennet reported from Tripoli, Lebanon, and Zaatari, Jordan.

Souad Mekhennet, co-author of “The Eternal Nazi,” is a correspondent on the national security desk. She is a fellow with the New America Foundation and currently working on a memoir called, "I Was Told To Come Alone: My Journey Behind the Lines of Jihad."

Comments our editors find particularly useful or relevant are displayed in Top Comments, as are comments by users with these badges: . Replies to those posts appear here, as well as posts by staff writers.

To pause and restart automatic updates, click "Live" or "Paused". If paused, you'll be notified of the number of additional comments that have come in.

Comments our editors find particularly useful or relevant are displayed in Top Comments, as are comments by users with these badges: . Replies to those posts appear here, as well as posts by staff writers.

Spam

Offensive

Disagree

Off-Topic

Among the criteria for featured comments: likes by users, replies by users, previous history of valuable commenting, and selection by moderators.

Content from Allstate This content is paid for by an advertiser and published by WP BrandStudio. The Washington Post newsroom was not involved in the creation of this content. Learn more about WP BrandStudio.