A suicide bomber as killed at least 20 people at Afghanistan’s Supreme Court in Kabul.
Another 45 people were injured. The number of casualties is expected to rise.
The bomber targeted the car park of the court compound, reports say. The injured are being ferried to hospitals.
There was no immediate claim for the attack, which follows a number of deadly bombings by the Taliban and other militants in recent months.
The suicide bomber appeared to be targeting employees as they left the court to go home, officials said.
He was on foot and detonated a suicide vest, said Najib Danish, a spokesman for the interior ministry. The attack came hours after a senior district official in western Farah province was killed in a bombing claimed by the Taliban.
In the past, Afghan judicial institutions, including the Supreme Court in Kabul, have been targeted by Taliban militants.
Last month twin bombings near the parliament in Kabul that were claimed by the Taliban killed more than 30 people and wounded many more.
The blasts took place during rush hour as staff were leaving the parliament complex.
The latest attack highlights the worsening security situation in Afghanistan. The UN said on Monday that civilian casualties in the country have hit a new high, with 3,498 civilians killed in 2016.
The death toll marked a 3% rise on 2015, but included a ten-fold increase in casualties from attacks linked to militants from the so-called Islamic State (IS).
IS has carried out many recent attacks in Kabul, though the militant group has mostly targeted the country’s Shia community.
The Afghan government controls no more than two-thirds of the country.
Most Nato troops left at the end of 2014 but some 13,000 foreign troops, more than half of them American, remain in training and advisory roles.