(AP) -- Islamic State militants withdrew Thursday from their last stronghold in Syria, a strategic town near the border with Iraq, after a government offensive that has effectively left the extremist group's fighters dispersed in villages and small towns in the desert.
The Syrian military declared the town liberated after intense battles that killed a large number of militants, including leaders. The military said they are still chasing other Islamic State militants in different directions in the desert.
"The liberation of Boukamal is of great importance because it is a declaration of the fall of this group's project in the region generally and the collapse of its supporters' illusions to divide it, control large parts of the Syria-Iraq borders and secure supply routes between the two countries," Army spokesman Gen. Ali Mayhoub said in a televised statement.
Syrian pro-government media said Syrian troops had clashed with remnants of Islamic State militants in the town after they entered it late Wednesday. On Thursday, they reported the town clear of Islamic State fighters.
[THE ISLAMIC STATE: Timeline of group's rise, fall; details on campaign to fight it]
Pro-Syrian media reported the town was liberated. Al-Ikhbariya TV's journalist reported from the road to the town, joyfully breaking out on camera: "Daesh is finished. Live."
The Britain-based Syrian Observatory for Human Rights said government forces and allied troops, including Iraqi forces who linked from across the border, were combing through Boukamal after the Islamic State militants withdrew.
With the collapse of the Islamic State in Boukamal, the militants have no major territorial control in Syria and Iraq, and are believed to have dispersed in the desert west and east of the Euphrates River. U.S. officials estimated that there were between 2,500 and 3,500 Islamic State militants around Boukamal and that leading members of the group were believed to have taken refuge in the town. The group has a small presence near the Syrian capital, Damascus.
The Islamic State has suffered consecutive defeats at the hands of separate but simultaneous offensives in Iraq and Syria by the Russian-backed Syrian forces and allied militias, as well as U.S.-backed Iraqi and Syrian fighters.
Despite its fall, the group's media apparatus has remained active, and its fighters are expected to keep up their insurgency from desert areas.
The fall of the Islamic State in Boukamal in eastern Deir el-Zour province was accelerated after Iraqi forces seized Qaim, the town across the border last weekend, also controlling a strategic crossing between the two countries.
A senior Iraqi official said there was an agreement Tuesday to send Iraqi paramilitaries to Syria to take part in the Boukamal operation, adding that the Syrians were to supply them with weapons and gear. The official spoke on condition of anonymity because he was not authorized to speak to reporters.
An Iraqi spokesman for the Popular Mobilization Forces said last week that his forces, part of the Iraqi security forces, will participate in the operation and will head north to protect the borders and secure the road from Iran to Lebanon.
Syrian troops -- backed by Russia and Iranian-supported militias -- and U.S.-backed Syrian Democratic Forces are vying for control of the strategic border town.
Washington is wary of increasing Iran influence in the area and has backed the Syrian Democratic Forces in their bid to uproot the Islamic State from the borders with Iraq. The proximity of forces in the area had raised concerns about potential clashes between them as they approach Boukamal from opposite sides of the Euphrates River, and now from across the border with Iraq.
It was not clear if the government seizure of the town means the end of the race for control of territory previously held by the Islamic State.
So far the Kurdish-led Syrian Democratic Forces have focused on the area east of the Euphrates, seizing a number of oil and gas fields, and securing large swaths of areas along the border with Iraq, as well as the newly liberated Raqqa city.
Information for this article was contributed by Sinan Salah of The Associated Press.