The explosion in western city of Herat killed Mujib ul Rahman Ansari, a prominent cleric who was known across Afghanistan for his criticism of the country's Western-backed governments over the past two decades.
An explosion tore through a crowded mosque in western Afghanistan, killing at least 18 people, including a prominent cleric, Taliban officials and a local medic have said.
At least 21 people were hurt.
The blast went off on Friday in the Guzargah Mosque in the western city of Herat during Friday noon prayers, the highlight of the Muslim religious week when places of worship are particularly crowded.
The explosion killed Mujib ul Rahman Ansari, a prominent cleric who was known across Afghanistan for his criticism of the country's Western-backed governments over the past two decades.
Ansari was seen as close to the Taliban, who seized control over the country a year ago as foreign forces withdrew.
His death was confirmed by the chief Taliban spokesperson Zabihullah Mujahid.
Ambulances transported 18 bodies and 21 wounded people from the blast to hospitals in Herat, said Mohammad Daud Mohammadi, an official at the Herat ambulance centre.
There was no immediate claim of responsibility for Friday's blast.
Previous mosque attacks have been claimed by Daesh, which has carried out a series of attacks against religious and ethnic minorities in Afghanistan, as well as Taliban targets.
READ MORE: Death toll from Kabul mosque attack climbs