Taliban forces entered the Afghan capital of Kabul on Sunday and edged closer to taking full control of the nation, as the embattled President Ashraf Ghani fled the country.a view of a city with a mountain in the background: A general view of Kabul on Sunday.© Wakil Kohsar/AFP/Getty Images A general view of Kabul on Sunday.Taliban representatives have been in talks with the government for hours over who will rule the nation, following the militant group’s strikingly rapid advance across the country, in which it seized power over dozens of key cities, often with little to no resistance.

It was not immediately clear where Ghani was going, but his departure signals a likely end, or transformation, of his embattled government.

The Taliban’s decisive takeover of the country and the US’ drawdown of its forces is a bitter end to nearly two decades of war that cost many lives, resources and little progress in state building.

The US’ withdrawal from the country opened a clear path for the Taliban to take on and defeat the Afghan security forces. Many major cities fell with little to no resistance, including the key city of Jalalabad, which the Taliban seized on Sunday.

The country is now facing the Taliban’s return to power, which, if it’s anything like it was in the 1990s, would mean a deterioration in civil liberties, particularly for women and girls whose freedoms grew under the civilian government.

A source at the Afghan presidential palace told CNN earlier Sunday that eight or nine representatives of Taliban were currently inside the palace, including Anas Haqqani, a brother of the deputy Taliban leader Sirajuddin Haqqani.

Acting Afghan Interior Minister Abdul Sattar Mirzakwal said Sunday that Kabul would not be attacked and that the government will shift power peacefully to a transitional administration, though he did not say what a transitional government may look like.

But with so much territory now in hand, the Taliban has little reason to agree to a transitional government. It may demand a full transfer of power.

a group of people posing for a picture: Afghans in Kabul rushing home after news broke the Taliban had reached the outskirts of the Afghan capital on Sunday.

Chaotic scenes as US evacuates staff

The US has launched a major operation to evacuate its embassy staff from the capital, and appears to have been caught off guard by the sheer speed the of the Taliban’s push toward Kabul.

On Sunday, two sources familiar with the operation to evacuate US personnel from the embassy in Kabul said all staff there would be pulled out over the next 72 hours, including the top officials.

That deadline is a rapid acceleration of the process that was only announced on Thursday, when US President Joe Biden said he would send 3,000 troops to arrive by the end of Sunday. On Saturday, Biden increased that number, authorizing 5,000 in total as the Taliban circled in on Kabul.

US Special Representative for Afghanistan Zalmay Khalilzad had requested that Taliban fighters not enter Kabul until the US citizens are evacuated, according to a source familiar with the discussions.

A witness who spoke to CNN described chaos at the Hamid Karazi International Airport, from where throngs of foreigners were trying to board planes out of the country.

“There are big crowds trying to get in and at one stage shooting erupted,” the witness said, but could not say where the shooting had come from.

“There was also a warning of a ground attack and we were in a bunker for the past hour, but now it is all clear,” the witness added. “It’s all foreigners here. One young European woman was freaking out.”

The majority of US Embassy staff are out of the diplomatic compound now and are at the airport, a US official told CNN.

A source at the airport in Kabul told CNN that a number of high-ranking Afghan officials, including some of Ghani’s advisors, had arrived at the VIP lounge earlier and were waiting for a flight out of the city. Their destinations are unknown.

A small number of core personnel, including the top US diplomat in the country, will remain at Kabul’s airport for now, two sources who spoke to CNN on the evacuation said. The US embassy in Kabul will be shuttered — at least for the time being — by Tuesday.

Editor: Michael