Daesh recaptured Albu Kamal in eastern Syria on Saturday after a fierce fightback to save the last urban bastion of its collapsing "caliphate."
The militants rebound came as the United States and Russia issued a surprise joint presidential statement saying there was "no military solution" to Syria's grinding six-year war.
The two countries have long backed opposite sides in Syria, but the Kremlin on Saturday said US President Donald Trump and Russian counterpart Vladimir Putin made progress during a brief meeting on the sidelines of a summit in Vietnam.
Trump and Putin also "confirmed their determination to defeat [Daesh]," as reported by AFP.
The militant group overran swathes of territory in Syria and Iraq in 2014, but its self-styled "caliphate" has since been whittled down to a pocket of land along the border between the two countries. Daesh is putting up a fierce defense there, particularly for the vital Syrian border town of Albu Kamal, said the Syrian Observatory for Human Rights monitoring group.
Syrian regime forces and allied militia from Lebanon, Iraq and Iran overran Albu Kamal on Thursday but lost the town again just two days later after a string of Daesh counter-attacks and ambushes.
"[Daesh] fully recaptured Albu Kamal, and regime forces and allied militia are now between one to two kilometers from the city limits," Rami Abdel Rahman, head of the Britain-based Observatory, said on Saturday.
The Observatory also reported 26 civilians killed, including nine children, since Friday night in artillery fire by regime forces and Russian air strikes that hit villages and camps for those displaced by the fighting in Albu Kamal.
Across the border, Iraqi forces seized on Saturday several villages from the militants in an offensive to capture the last Daesh-held section of their country.
The operation's commander, General Abdelamir Yarallah, said his forces captured Rumana and 10 other villages as they worked their way towards the Euphrates Valley town of Rawa, the last Iraqi town still held by Daesh.
The terrorist group has in the space of a few weeks seen its "caliphate" shrink to a small rump and lost major cities such as Mosul in Iraq, and Raqa and Deir ez-Zor in Syria.
Albu Kamal is the last significant Syrian town it controls. Losing it would cap the group's reversion to an underground guerrilla organization with no urban base
Daesh rose to prominence in the chaos of Syria's conflict, which broke out in 2011 with protests against President Bashar al-Assad.
It has since evolved into a complex war that has killed more than 330,000 people, forced millions more to flee, and left much of the country in ruins.
Violence has broadly decreased since a series of "de-escalation zones" have been put in place in recent months in battlefronts across the country.