ntrol of nearly two thirds of Syria's territory, after seizing large swathes back from myriad rebel and jihadist groups.

After seven years of war, the government is now back in co

He prepares for a test drive on a stretch of tracks leading from Qadam station -- until May a pocket of Islamic State group resistance -- to grounds hosting the annual Damascus International Fair.

"I've been waiting for this day for six years," the 42-year-old says, drumming excitedly on the train's control board.

Abu Abdo eases himself into the driver's seat, itching to try out freshly laid train tracks between two suburbs of Syria's capital, Damascus.

Sign up for our Newsletter

The regime views reviving the railways as crucial to its reconstruction policy.

And the week-long fair, which started on Thursday, is being serviced by 28 trains each day, according to state media.

Abu Abdo begins the trial run.

"When I drive a train, I feel like I'm flying," he says, happy to be back behind the wheel after six years stuck behind a desk and largely idle at the Public Transport Authority.

Before the war, he had driven trains for 20 years.

Locomotives had chugged across Syria for over a century, carrying passengers, construction materials, oil and gas over hundreds of kilometres (miles).

The trains linked Damascus to the second city, Aleppo, and other urban centres in Homs, Latakia on the western coast, Deir Ezzor in the east, and elsewhere.

But train traffic came shuddering to a halt in 2012, a year into the civil war.

Next stop: reconstruction

Of the 2,450 kilometres (1,500 miles) of train tracks that cross Syria, some 1,800 kilometres will be repaired, according to the transport ministry. (photo by: Maher AL MOUNES/AFP)

Of the 2,450 kilometres (1,500 miles) of train tracks that cross Syria, some 1,800 kilometres will be repaired, according to the transport ministry.

Stretches of track survive intact in the coastal provinces of Latakia and Tartus, areas relatively insulated from the violence.

Routes that will be revived include those running north-south between Damascus, Homs and Aleppo, as well as lines between the coast and the country's east, bordering Iraq.

Many lines even lack tracks.

"Some tracks were stolen and others were damaged because of the war," says Radwan Tikriti, the railway chief for the Damascus region.

He has worked with locomotives for 30 years and once lived near Qadam station, where he grew accustomed to waking each morning to the sound of train whistles.

That changed in early 2013, when rebels overran the district and Tikrit

i fled, ahead of Qadam then falling into IS' clutches.

"We're working now to link the cities (back) together," Tikriti tells AFP.

Seven years of war have destroyed towns and cities, including infrastructure, from water pipes to power stations.

The United Nations estimated last month that the conflict has cost Syria close to $400 billion (350 billion euros).

"We're in a race against time to rehabilitate the railway. We all really want to hear the sounds of trains" again, says Tikriti.

Tight timetable

The authorities aim to have most lines back up and running by the end of the year, says Syrian Transport Minister Ali Hammud. (photo by: Maher AL MOUNES/AFP)

In July, President Bashar al-Assad earmarked rebuilding Syria as his "top priority", and reviving the railways is a big part of that task.

The authorities aim to have most lines back up and running by the end of the year, says Transport Minister Ali Hammud.

"The railways will play an essential role in reconstruction," Hammud tells AFP.

Cargo trains carry construction materials "faster and cheaper" than lorries, he says.

Repairing the railways could also revitalise land trade and jump-start Syria's collapsed economy, Hammud says.

"We're the gateway to the Mediterranean for the Gulf, Jordan, and Iraq," he says, pointing to a map of Syria.

"The objective is to link Syrian ports to neighbouring countries," he adds, referring to the maritime posts at Tartus and Latakia.

"We're going to reconnect all the borders."

For driver Abu Abdo, the railway's revival is personal.

The lifelong driver comes from Idlib in the northwest, the only province still in rebel hands and the next military target for regime forces.

"I hope the day will come when I can go back to my hometown," he says.

"Only then can we say that Syria has become what it was before the war."