A bomb has exploded at a mosque in north-western Pakistan during Friday prayers, killing at least 38 people and wounding dozens more.
Police said a suicide bomber detonated explosives at the mosque in Upper Dir district, although some witnesses said the bomb was already in the building.
Nearby Swat Valley has been the scene of heavy fighting between the Pakistani military and Taliban militants.
Upper Dir has also been the scene of sporadic clashes between the two.
The bomb exploded at the mosque in the village of Hayagai Sharki, about 15km from the town of Upper Dir.
The building was severely damaged and many worshippers were reported to have been trapped under the rubble. A resident of the village described the carnage at the scene of the blast.
"A large number of body parts are scattered in the mosque. We don't know whether these are parts of the dead who have been identified or of others," Umer Rehman told the Reuters news agency.
There has been no immediate claim of responsibility for the blast, but the north-west region as a whole has witnessed a number of suicide attacks linked to the Taliban insurgency, as well as the Shia-Sunni sectarian divide.
In March, about 50 people died in a suicide bomb attack at a mosque near Jamrud, on the Khyber Pass route to Afghanistan.
There are fears of a militant backlash in response to the army's military campaign in Swat, analysts say.
The bombing has been condemned by both the Pakistani president and the prime minister who have reiterated Pakistan's determination to establish full government control.
Pakistan's army chief, General Ashfaq Kayani, said in a statement last night that the army had "turned the tide" against the Taliban and reiterated that the army aimed to completely eradicate them from the neighbouring Swat valley.
In recent days the army has captured a number of militant strongholds as it continues its offensive.
More than two million people have been displaced by the fighting.