The Syrian army and allied forces recaptured a town from Daesh on Saturday in central Homs province, where the militants have lost vast territory in recent months, state media said.

Syrian troops regained control of al-Qaryatayn “after eliminating terrorist Daesh groups that had infiltrated it,” state TV.

Earlier this month, the Syrian Observatory for Human Rights said Daesh fighters had seized the town from government forces, part of a counter-attack by the militants who have come under intense pressure in eastern Syria.

The Observatory said on Saturday that some militants had surrendered and others had withdrawn from the town after heavy fighting. The only Daesh presence in Homs was in a patch of desert in the east of the province, the Britain-based war monitor said.

Opinion: Defeat of Daesh in Raqqa may herald wider struggle for US

The town of al-Qaryatayn lies some 100 km (60 miles) from the ancient city of Palmyra, and nearly 300 km (190 miles) from Deir al-Zor city, the current focus of the Syrian government’s offensive against Daesh.

With the help of Russian jets and Iran-backed militias, the Syrian army has taken swathes of land from Daesh in central Syria, including in Homs province. After months of steady gains across the central desert, the army and its allies marched eastwards into Deir al-Zor.

Daesh militants have been on the back foot across Syria, forced into their last strongholds in the east of the country. The Russian-backed Syrian army and US-backed Syrian militias are waging separate offensives against the militants in Deir al-Zor province, bordering Iraq.

Aleppo: 250,000 people displaced as winter approaches