It’s no mean feat sneaking the most famous man in the world out of Florida and into a war zone some 8,000 miles away.

But the White House went to great lengths to keep President Trump’s first trip to Afghanistan under wraps, even confiscating cellphones and other transmitting devices from pool reporters.

While Trump was at Mar-a-Lago Wednesday night, a small group of Washington reporters were told to meet atop a parking garage and then driven in black vans to Joint Base Andrews in Maryland.

Around the same time, Trump was quietly flying back from Florida, where members of the media had been told he’d be celebrating Thanksgiving at his Mar-a-Lago home.

The plane he had taken to Florida Tuesday — a modified 747 sporting the iconic blue-and-white colors of Air Force One — remained parked on the West Palm Beach Airport tarmac to help keep Trump’s whereabouts under wraps.

The White House added to the secrecy by sending out Thanksgiving-themed tweets from the president’s account to avoid suspicion that he had gone silent.

Around 9:45 pm Wednesday, he boarded a nearly identical airplane hidden in a Joint Base Andrews hanger, making it Air Force One, and took off at 10:08 pm for the roughly 15-hour flight to Afghanistan.

The plane landed at Bagram Air Base at 8:33 local time Thursday with cabin lights dimmed and window shutters down.

The White House confirms the trip was in the works for weeks, and the trickery comes after Trump’s cover was blown last year when Air Force One was spotted heading to Iraq by an amateur flight watcher.