RAQQA, Syria—In parts of this battle-torn country, a second civil war has begun.

In the north and east bordering Turkey and Iraq, a stretch of Syria in rebel hands has split into competing fiefs. In some places, Islamist extremists with agendas that extend far beyond Syria are pushing aside the rebel battalions that started the insurgency against Bashar al-Assad's regime in 2011.

The...