BAGRAM         -        US President Donald Trump paid a surprise Thanksgiving visit to Afghanistan, where he announced the US and Taliban have been engaged in ongoing peace talks and said he believes the Taliban wants a ceasefire.

In his first trip to the site of America’s longest war, Trump arrived at Bagram Air Field shortly after 8:30 pm local time Thursday and spent more than two-and-a-half hours on the ground, serving turkey, thanking the troops and sitting down with Afghan President Ashraf Ghani.

As per tradition, reporters were under strict instructions to keep the trip a secret to ensure his safety in the country. About 12,000 US forces remain in Afghanistan.

Travelling with a small clutch of aides, including his acting chief of staff, press secretary and national security adviser, but not the first lady, Trump appeared in good spirits as he was escorted around the base by heavily armed soldiers, as the smell of burning fuel and garbage wafted through the chilly air.

His first stop was a dining hall where he plated turkey and sat down for a meal.

During his visit, Trump said the US and Taliban have been engaged in peace talks and insisted the Taliban want to make a deal after heavy US fire in recent months. “We’re meeting with them,” he said. “And we’re saying it has to be a ceasefire. And they don’t want to do a ceasefire, but now they do want to do a ceasefire, I believe... and we’ll see what happens.”

The trip comes after Trump abruptly broke off peace talks with the Taliban in September, cancelling a secret meeting with Taliban and Afghan leaders at the Camp David presidential retreat after a particularly deadly spate of violence, capped by a bombing in Kabul that killed 12 people, including an American soldier.

That ended a nearly yearlong effort by the US to reach a political settlement with the Taliban.

It was not immediately clear how long or substantive the US reengagement with the Taliban has been.

Trump ran his 2016 campaign promising to end the nation’s “endless wars” and has been pushing to withdraw troops from Afghanistan and in the Middle East, despite protests from top US officials, Trump’s Republican allies and many US allies abroad. For months now, he has described American forces as “policemen” and argued that other countries’ wars should be theirs to wage.

Just last week, Trump flew to Dover Air Force Base in Delaware to oversee the transfer of remains of two Army officers killed when their helicopter crashed as they provided security for troops in eastern Afghanistan. The Taliban still control or hold sway over about half of the country, staging near-daily attacks targeting Afghan forces and government officials.

The US and Taliban had been close to an agreement in September that might have enabled a US troop withdrawal.

Trump said he was proceeding with a plan to reduce US troop levels to about 8,600, telling reporters we’re “bringing down the number of troops substantially.”

Still, he said, the US will stay in the country “until we have a deal or we have total victory.”

Trump also met briefly with Ghani, the Afghan president. Ghani thanked the Americans who have made the “ultimate sacrifice” in Afghanistan. “Afghan security forces are taking the lead now,” Ghani said.

The White House took pains to keep the trip a secret after Trump’s cover was blown last year when Air Force One was spotted en route to Iraq by an amateur British flight watcher.

Cell phones and other transmitting devices were confiscated for the duration of the trip from everyone travelling aboard Air Force One. And Thanksgiving-themed tweets were teed up to publish ahead of time from Trump’s account to prevent suspicions arising about the president’s silence.

A small group of reporters was told to meet Wednesday night on the top floor of a parking garage and transported in black vans to Andrews Air Force Base. Meanwhile, the president was secretly flying back from Florida, where reporters had been told he’d be spending Thanksgiving at his Mar-a-Lago club.

The plane he’d flown to Florida — the modified 747 painted in the iconic white and blue of Air Force One — remained parked on the tarmac at West Palm Beach Airport to avoid revealing the president’s movement.

About 9:45 pm Wednesday, the president boarded a nearly identical plane concealed in a hangar at Andrews Air Base, taking off and landing under the cover of darkness, with cabin lights dimmed and window shutters drawn.

White House Press Secretary Stephanie Grisham said plans for the visit had been in the works for weeks. “It’s a dangerous area and he wants to support the troops,” Grisham told reporters before Trump landed. “He and Mrs Trump recognise that there’s a lot of people who are away from their families during the holidays and we thought it’d be a nice surprise.”

Shortly after midnight, Trump and his entourage departed.

The president told the troops he was honoured to spend part of his holiday with them.

“There is nowhere I’d rather celebrate this Thanksgiving than right here with the toughest, strongest, best and bravest warriors on the face of the earth,” Trump said.

In their reaction on Friday, Taliban said they were ready to restart peace talks with the United States. Zabihullah Mujahid, a spokesman for the insurgent group, said they were “ready to restart the talks”.

“Our stance is still the same. If peace talks start, it will be resumed from the stage where it had stopped,” Mujahid told Reuters.

Taliban leaders have told Reuters that the group has been holding meetings with senior US officials in Doha since last weekend, adding they could soon resume formal peace talks. “We are hoping that Trump’s visit to Afghanistan will prove that he is serious to start talks again. We don’t think he has not much of a choice,” said a senior Taliban commander on conditions of anonymity.

Trump did not answer reporters’ questions when he returned on Friday morning to Florida.