BEIRUT, Lebanon — More than a hundred people left a rebel-held enclave in Syria on Tuesday after rebel forces reached a medical evacuation agreement with the Syrian government’s ally, Russia. The deal, brokered by the United Nations, came weeks after government forces began a ferocious assault to retake the insurgent stronghold.

One hundred and seventy people — 31 of them sick or wounded, along with their families — were evacuated from eastern Ghouta to Damascus, Syria’s capital, through a checkpoint near Douma.

They were but a small fraction of the estimated 1,000 people in need of emergency medical treatment but unable to get it within the besieged enclave, according to the Syrian American Medical Society.

“We honestly feel reborn now that we have left Ghouta safely,” one resident told Syrian state television. which showed footage of the evacuation, facilitated by the Syrian Arab Red Crescent.