The Biden administration moved in June to dismantle a system designed to protect American citizens trapped abroad — just months before the Taliban took over Afghanistan, stranding thousands of Americans in the Central Asian country.

Fox News has obtained the June 11 memo sent around the State Department which gave the green light on the “discontinuation of the establishment, and the termination of, the Contingency and Crisis Response Bureau (CCR).”

The sensitive but unclassified memo was signed by Deputy Secretary of State Brian McKeon, just a couple of months before the Biden administration’s botched troop withdrawal that saw Afghanistan fall under Taliban control.

EXILED AFGHAN PRESIDENT GHANI ISSUES FIRST STATEMENT SINCE LEAVING COUNTRY: LIVE UPDATES

CCR was formed under Trump-era Secretary of State Mike Pompeo and was tasked with providing “aviation, logistics, and medical support capabilities for the Department’s operational bureaus, thereby enhancing the secretary’s ability to protect American citizens overseas in connection with overseas evacuations in the aftermath of a natural or man-made disaster.”

The agency could have played a role in the response to the Taliban’s takeover of Afghanistan, where thousands of American citizens and allies are trapped behind terrorist lines.

The president told ABC News on Wednesday he did not believe the withdrawal could’ve happened without “chaos ensuing.”

CLICK HERE TO GET THE FOX NEWS APP

“When you had the government of Afghanistan, the leader of that government, getting in a plane and taking off and going to another country, when you saw the significant collapse of the Afghan troops we had trained, up to 300,000 of them just leaving their equipment and taking off – that’s what happened,” he said.

The State Department did not immediately respond to Fox News’ request for comment.