This article is more than
3 year oldMore than 50 people - mostly girls - died in the explosions that occurred as students were leaving the building.
No-one has admitted carrying out the attack in Dasht-e-Barchi - an area often hit by Sunni Islamist militants.
Afghan government officials blamed Taliban militants for the attack, but the group denied any involvement.
Nobel Prize winner and activist Malala Yousafzai - who was shot in the head by the Taliban in 2012 - posted about the "horrendous attack" on Twitter.
"My heart is with the Kabul school victims' families," she wrote.
In Kabul, terrorists committed a horrendous attack on school children, most of them girls. The escalation of terrorism is alarming for peace and democracy in Afghanistan. World leaders must unite to safeguard school-children. My heart is with the #Kabul school victims’ families.
— Malala (@Malala) May 9, 2021
The exact target for Saturday's bloodshed is unclear. The blasts come against a backdrop of rising violence as the US looks to withdraw all its troops from Afghanistan by 11 September.
The explosions are believed to have been caused by a car bomb and two improvised explosive devices planted in the area.
One survivor, Zahra, told reporters she was leaving the school as the blasts took place.
"My classmate died. A few minutes later there was another explosion, and then another. Everyone was screaming and there was blood everywhere," she said.
Several witnesses described hearing three separate explosions, while one woman, Reza, told AFP news agency she had seen "many bloodied bodies in dust and smoke".
"I saw a woman checking the bodies and calling for her daughter," Reza said. "She then found her daughter's bloodstained purse after which she fainted and fell to the ground."
More than 100 people were injured in the attack. Reports from Kabul say the city was busy with shoppers ahead of this year's celebrations for Eid al-Fitr next week.
Najiba Arian, ministry of education spokeswoman, told Reuters news agency the government-run school was open to boys and girls. Most of the those hurt were girls, who study in the second of three sessions, according to Ms Arian.
Afghanistan is seeing increasing violence as the US and Nato prepare to pull out all remaining forces from the country on 11 September.
On Saturday the US state department condemned "the barbarous attack".
"We call for an immediate end to violence and the senseless targeting of innocent civilians," it said.
The European Union's mission in Afghanistan said on Twitter that "targeting primarily students in a girls' school, makes this an attack on the future of Afghanistan".
The neighbourhood in western Kabul where the blasts occurred is home to many from the Hazara minority community, who are of Mongolian and Central Asian descent and are mainly Shia Muslims.
Almost exactly a year ago, a maternity unit at the local hospital was attacked, leaving 24 women, children and babies dead.
Heather Barr, who works for Human Rights Watch, tweeted a series of videos and photos of what she said was the school in Kabul - including a tour of the site given by one of the students. Ms Barr said the group had filmed a documentary there in 2017.
Analysis by Secunder Kermani, BBC Afghanistan correspondent
So many places in Afghanistan have endured so much pain, but the Dasht-e-Barchi neighbourhood in Kabul has suffered horrendously.
The neighbourhood is populated by members of Afghanistan's Hazara ethnic minority. As followers of Shia Islam, the Islamic State group (IS) views them as heretics, and has carried out a vicious campaign, attacking the softest of targets.
Dozens have been killed in bombings at sports halls, cultural centres, and places of education in particular.
Last year, and in 2018, IS suicide bombers struck tuition centres in the area killing more than 70 people. IS is not part of the peace talks between the Taliban and Afghan government, which in any case are currently stalled.
As of yet, there's been no claim for the attack on Saturday. However, IS continues to carry out assassinations and bombings in Kabul and the city of Jalalabad, despite having recently lost much of the territory it once controlled in the east of the country.
You may also be interested in...
Newer articles