As the Taliban took over control of the Sheberghan in the northern province of Jawzjan, they took over the control of the jail and freed the prisoners.
The videos released on social media show hundreds of inmates leaving the prison after the militants of the rebel Taliban captured the prison.
Sherberghan became the second regional capital to be controlled by the Taliban. The city is supposed to be a stronghold of the former Afghani vice-president Abdul Rashid Dostum.
The region's council chief Babur Eshchi said that the Taliban is in control of the whole city except for an Army base where the fighting is still going on.
The city of Zaranj, in Nimroz province, was the first regional capital to fall to the insurgents on Friday.
Other provincial capitals under pressure include Herat in the west, and the southern cities of Kandahar and Lashkar Gah.
Taliban shot President Ashraf Ghani's former spokesman dead in the capital Kabul. The militia also carried out a bomb attack on the house of the acting defense minister.