Afghan President Mohammad Ashraf Ghani left the country on Sunday night, while the Taliban forces entered the capital of Kabul and took control of the presidential palace.
Ghani confirmed on his Facebook page late on Sunday that he has left the country, saying the move was to prevent bloodshed. A senior Interior Ministry official said earlier in the day that he was heading for Tajikistan, while a Foreign Ministry official said his destination remains unknown.
The Taliban forces entered Kabul city and took control of the presidential palace. The group has taken control of all the districts of Kabul, Taliban spokesman Mujahid said.
A curfew has been imposed in Kabul starting 21:00 local time on Sunday to prevent violence.
A Taliban spokesman said that the military group expects a peaceful transition of power "in the next few days."
However, earlier in the day, Afghan acting Interior Minister Abdul Sattar Mirzakwal said that "power will be peacefully transferred to a transitional government."
According to the group, foreigners could leave Kabul or the country through the Kabul airport, or register their stay in the country with the group.
Meanwhile, the United States was reported to have completed the evacuation of its embassy in Afghanistan.
The EU staff in Kabul have been transferred to a safe and undisclosed place. Some other Western missions were also busily evacuating their staff, reports said.
Inside the city, offices and buildings were deserted, and shops were shut down. Locals were rushing to their homes or out of the city to avoid possible fightings.
Outside of Kabul, the Taliban took control of Bagram prison at Bagram Airfield, 50 km north of Kabul, and released all inmates, Taliban spokesman Mujahid tweeted.
The prison homes about 5,000 to 7,000 inmates, mainly Taliban prisoners.
Since the U.S. troops started to pull out of Afghanistan from May 1, the Taliban started to launch major offensives on Afghan forces. During the past 10 days, the military group has captured at least 25 provincial capitals of Afghanistan's 34 provinces in its blitz attacks, basically surrounding the capital of Kabul.