Rep. Liz Cheney, R-Wyo., slammed the Trump and Biden administrations for its handling of the U.S. withdrawal from Afghanistan. She suggested Trump instigated the problem and now Biden has continued it.

Afghanistan President Ashraf Ghani fled the country on Sunday, as the government is in chaos. The Taliban have effectively gained control of the capital of Kabul, while the U.S. military evacuates diplomats and civilians.

The Guardian reported Sunday that the Taliban claim they will soon declare an "Islamic Emirate of Afghanistan."

Cheney on Sunday appeared on ABC's "This Week," where she criticized what she suggested a failure of U.S. leadership.

"What we're watching right now in Afghanistan is what happens when America withdraws from the world," Cheney said. "So everybody who has been saying, 'America needs to withdraw, America needs to retreat,' we are getting a devastating, catastrophic real-time lesson in what that means."

Cheney also posted scathing comments Saturday on Twitter.

"The Trump/Biden calamity unfolding in Afghanistan began with the Trump administration negotiating with terrorists and pretending they were partners for peace and is ending with American surrender as Biden abandons the country to our terrorist enemies," Cheney tweeted.

Joe Biden announced on July 8 that the U.S. military would withdraw from Afghanistan. On Saturday, he said, "an endless American presence in the middle of another country’s civil conflict was not acceptable to me."

In October 2020, Donald Trump announced he wanted to pull all troops from Afghanistan by Christmas. The comments were immediately greeted with enthusiasm by the Taliban.

Appearing Sunday on "This Week," Secretary of State Antony Blinken defended the pullout.

“We went into Afghanistan 20 years ago with one mission in mind, and that was to deal with the people who attacked us on 9/11, and that mission has been successful,” Blinken said.

Senate Minority Leader Mitch McConnell had said on Saturday that intervention would be needed to prevent the Taliban from taking over Afghanistan.

"It is not too late to prevent the Taliban from overrunning Kabul. The Administration should move quickly to hammer Taliban advances with airstrikes, provide critical support to the Afghan National Defense and Security Forces (ANDSF) defending the capital, and prevent the seemingly imminent fall of the city," McConnell said in a statement.

“If they fail to do so, the security threat to the United States will assuredly grow and the humanitarian cost to innocent Afghans will be catastrophic."