For the rebel fighters who seized control of this strategic town, Thursday was a day of jubilation. The retreating Ukrainian soldiers were grim, stunned and relieved to have escaped with their lives as the scope of their losses became clearer: at least 13 dead and hundreds missing, captured or wounded.

Rebel fighters roamed the debris-littered streets of Debaltseve, laughing, hugging and posing for photos a day after the fall of the furiously contested railway hub.

On the road out of town, dozens of Ukrainian military vehicles, many riddled with bullet holes, were heading to the government-held city of Artemivsk.

The soldiers inside described weeks of harrowing rebel shelling, followed by a hasty retreat.

“We left under heavy fire, driving on back roads,” said a soldier who gave only his first name, Andrei. “As we were leaving, we were attacked by artillery and grenade launchers. We came under repeated attack by tanks and assault groups.”

As rebels waved separatist flags, Nikolai Kozitsyn, a Russian Cossack leader and prominent warlord in the rebel-controlled east, drove around in a Humvee-like vehicle captured from Ukrainian troops.

All around lay the wrecked remains of Ukrainian armored vehicles. Rebel fighters, many of them Cossacks, searched through the bunkers and tents of an abandoned military encampment, looking to salvage equipment and clothing left behind.

Two rebel fighters inspected an abandoned tank, declaring it a “gift” from the Ukrainian army. They then grabbed a bloodied blue-and-yellow Ukrainian flag and ground it into the frozen earth with their boots.

Cossacks, who spearheaded imperial Russia’s expansion and helped guard its far-flung outposts, trace their historic roots to both Ukraine and southern Russia. They faced persecution under Bolshevik rule but resurfaced after the 1991 Soviet collapse and are now recognized in Russia as an ethnic group who consider themselves descendants of the czarist-era horsemen.

By Thursday, 90 percent of government forces had been withdrawn, a military spokesman said, though he gave no precise figure.

The official toll stood at 13 soldiers killed, 157 wounded, more than 90 captured and at least 82 missing. But retreating soldiers spoke of many more casualties during a hasty and disorderly withdrawal, and the death toll is likely to rise.

Rebel leaders also claimed the Ukrainian casualties were far higher and bragged about seizing large numbers of heavy weapons abandoned by the government forces.

The capture of Debaltseve, a key railroad junction that straddles the route between the separatists’ two main cities, Donetsk and Luhansk, was a significant military victory for the rebels. However, Ukrainian military spokesman Andriy Lysenko said the three-week siege had left the town’s infrastructure in ruins. “A strategic rail hub has stopped its existence the way it was,” he said.

The battle for Debaltseve defied a cease-fire for eastern Ukraine that was supposed to go into effect Sunday.

Russia denies arming the rebels or supplying fighters, but Western nations and NATO point to satellite pictures of Russian military equipment in eastern Ukraine.