Two detained members of an infamous ISIS cell dubbed “The Beatles” have been moved from a Kurdish jail and into US military custody, President Trump said Thursday.

Alexanda Kotey, 35, and El Shafee Elsheikh, 31 — whose terror gang is known for beheadings — were transferred from northern Syria as Turkey made a military incursion into the country, Trump said.

“In case the Kurds or Turkey lose control, the United States has already taken the 2 ISIS militants tied to beheadings in Syria, known as the Beetles [sic], out of that country and into a secure location controlled by the U.S.,” Trump wrote on Twitter.

“They are the worst of the worst!”

The cell was named after the Fab Four because of the members’ British accents — but they’re not interested in peace and love.

These “Beatles” allegedly tortured and beheaded several Western hostages, including Americans James Foley, Steven Sotloff and Peter Kassig, at the height of ISIS’s horrific power.

The group’s frontman, Mohammed “Jihadi John” Emwazim — who carried out the ­videod executions — was killed in a drone strike by a US-led coalition in 2015.

The gang tortured more than 20 Western hostages, beheading seven American, British and Japanese journalists and aid workers, as well as a contingent of captured Syrian ­soldiers.

Kotey and Elsheikh are the most notorious among several detained ISIS fighters turned over to US custody.

Trump had previously stated that the US would be warehousing the worst.

“We are taking some of the most dangerous ISIS fighters out,” Trump said at the White House on Wednesday.

“We are taking them out and putting them in different locations, where it’s secure.

“We have a certain number of ISIS fighters that are particularly bad, and we wanted to make sure that nothing happened to them in respect to getting out.”

A US-based source told CNN Thursday that Kotey and Elsheikh have yet to be moved to American soil, but that the eventual plan to is prosecute them.

When Barack Obama was in the White House, the UK had been loath let its citizens be tried in the US as long as the death penalty was on the table.

Britain has backed off of that position since Trump took office — and has since revoked Kotey and Elsheikh’s citizenship.

Kotey and Elsheikh were nabbed by Kurdish forces in eastern Syria in January 2018 amid the downfall of ISIS.

Their capture sparked a debate in the US and Europe over how to prosecute Western citizens who had taken up arms with ISIS.

With Wires