President Donald Trump on Thursday, Nov. 28, endured a 16-hour flight to visit U.S. troops in Afghanistan, serving Thanksgiving meals, talking, and posing with 1,500 soldiers there.

It was a surprise visit as he quietly left his new official residence at Mar-a-Largo, Florida, to visit the U.S. troops at Bagram Air Field in Afghanistan for Thanksgiving. The president arrived in perfect time to serve up Thanksgiving dinner to the troops on Thursday.

President Donald Trump had a Thanksgiving meal with U.S. troops at Bagram Air Field in Afghanistan. Trump’s first stop was a dining hall decked out in paper Thanksgiving decorations where he plated turkey for the troops at the largest U.S. base in the country.

He was then greeted by a round of loud cheers as he headed into a main dining area and sat down for a meal, chatted and posed for photos. He also thanked the troops and joked that, “It’s a long flight, but we love it.”

The meal included turkey, ham, macaroni and cheese, mashed potatoes and candied yams. The Macy’s Thanksgiving Day parade, “Entertainment Tonight” and a “Harry Potter”movie played on dining hall TVs.

US troops in Afghanistan broke out chanting USA! USA! as President Trump surprised them for Thanksgiving.

President Trump spoke to a crowd of about 1,500 troops gathered in a hangar on the base. 

“As President, I truly have no higher honor than to serve as Commander-in-Chief of the United States Military—the greatest force for peace and justice in the history of the world!” Trump said.

“This evening, I also want to express the profound & heartfelt gratitude of the entire American nation for our amazing military families. The extraordinary commitment & sacrifice of your loved ones make it possible for all of our families to live in safety & peace,” he added.

“We have the most powerful military in the world by far…This evening, as millions of families sit down at their dinner tables back home, they’ll say a prayer for the men and women serving in our nation in Afghanistan and deployed all around the globe,” the president continued.

President Trump took off after midnight from Bagram Air Field after several hours with the troops and a brief meeting with Afghan President Ashraf Ghani.

Trump said the U.S. and Taliban have been engaged in ongoing peace talks and he thinks the Taliban want to make a deal.

Here are the photos of the trip:

President Donald Trump speaks during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump, left, serves dinner accompanied by Joint Chiefs Chairman Gen. Mark Milley, center, during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump, left, serves dinner accompanied by Joint Chiefs Chairman Gen. Mark Milley, center, during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump holds up a tray of Thanksgiving dinner during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump smiles while sitting with the troops during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump points while eating during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump walks on stage as he arrives to speak to members of the military during a surprise Thanksgiving Day, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
Members of the military unfurl an American flag as President Donald Trump speaks during a surprise Thanksgiving Day visit to the troops, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump greeting members of the military after speaking to members of the military during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump, center, with Afghan President Ashraf Ghani, second from the right, and Joint Chiefs Chairman Gen. Mark Milley, right, while addressing members of the military during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump, center, with Afghan President Ashraf Ghani and Joint Chiefs Chairman Gen. Mark Milley, behind him at right, while addressing members of the military during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump addresses members of the military during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump smiles before addressing members of the military during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
President Donald Trump shakes hands during a meeting with Afghan President Ashraf Ghani during a surprise Thanksgiving Day visit, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)
White House staff and press corps walk to waiting van during a surprise Thanksgiving Day visit to the troops by President Donald Trump, Thursday, Nov. 28, 2019, at Bagram Air Field, Afghanistan. (AP Photo/Alex Brandon)

When coming back US, the president shared his photos via Twitter:

Includes reporting from the Associated Press