Huge crowds of Shiites have gathered in Iraq and Lebanon to mark a key holy day in defiance of jihadists from the Islamic State group.
Police and troops were out in force as hundreds of thousands of pilgrims massed in the Iraqi shrine city of Karbala to commemorate Ashura.
Tens of thousands more rallied in Beirut, where the head of the Shiite militant Hezbollah movement, Hassan Nasrallah, pledged "victory" against the Sunni extremists of IS.
This year's marking of the day has taken on new meaning after IS seized control of large parts of Iraq and Syria.
The jihadists consider Shiites heretics and have targeted them in deadly attacks, a string of which killed more than 40 people in Baghdad alone in the 48 hours preceding the peak of Ashura on Tuesday.
A Shi'ite Muslim girl reacts to a razor during a Muharram procession to mark Ashoura in Nabatieh town, southern Lebanon. Photo: Reuters
This year's commemorations are "about defying (IS) because they declared their hostility and made threats to kill Muslims and bomb the cities and holy shrines," said Saad Jabbar, 54, who came to Karbala from Dhi Qar province in the south.
Staff Lieutenant General Othman al-Ghanimi told Iraqi state television that "more than three million" people took part in Ashura rituals in Karbala.
The figure could not be independently verified.
The commemorations mark the killing of Imam Hussein, the grandson of the Prophet Mohammed, by the army of the Caliph Yazid in 680 AD, which helped solidify the divide between what would become the Sunni and Shiite branches of Islam.
A Shi'ite Muslim man bleeds after tapping his forehead with a razor during a Muharram procession to mark Ashoura in Nabatieh town, southern Lebanon. Photo: Reuters
A small minority of Shiites mark the day with a self-flagellation ritual called "tatbeer", cutting their heads with swords and spears in mourning for the imam.
Hundreds were seen on the streets of Karbala with blood flowing down their heads and over their white robes after the ritual self-harming, which has been condemned by some Shiite clerics.
Thousands dressed in black took part in a ritual run to the shrine of Imam Hussein, before men on horseback re-enacted an attack on his camp, setting fire to a tent that collapsed in a sheet of flame, sending a dark cloud of smoke rising over a massive crowd.
There were no reports of violence against people marking Ashura as of Tuesday night, after more than 25,000 members of the security forces were deployed in Karbala itself and thousands more in Baghdad and along routes to the city.
In Beirut, Nasrallah told supporters in the city's southern suburbs that Sunni radicals, known as takfiris, "have no future".
"These takfiris will be defeated in all areas and countries, and we will feel honoured that we played a role in their defeat," he said by video link.
Hezbollah has sent thousands of fighters into neighbouring Syria to support the troops of President Bashar al-Assad against the mainly Sunni rebels battling his regime.
A Pakistani Shi'ite Muslim man receives stiches after flagellating himself during a Muharram procession in Islamabad. Photo: Reuters
Beirut's southern suburbs -- a Hezbollah stronghold -- have seen a string of deadly attacks, many of them claimed by jihadists, since the group started sending fighters to Syria three years ago.
"We want to win the final victory... so that the region does not fall into the hands of beheaders... and rapists," Nasrallah said.
IS declared a "caliphate" in areas under its control in June, imposing its harsh interpretation of Islamic law and committing widespread atrocities.
In Syria, US-led air strikes in recent days have focused on the besieged town of Kobane on the Turkish border, where local Kurdish militia have been holding off an IS offensive for seven weeks.
At the weekend the Syrian Kurdish People's Protection Units militia defending the town was reinforced by about 150 Iraqi Kurd peshmerga fighters with heavy weapons.
Shi'ite Muslims perform with fire during commemorations Ashura in Najaf. Photo: Reuters
Peshmerga 'heavily shelling' IS
The peshmerga have been manning artillery in support of the Kobane Kurds and "heavily shelling" IS positions, a commander told AFP on the phone from the town, speaking on condition of anonymity.
The jihadists were reported Tuesday to have released at least 93 Syrian Kurds from Kobane who were kidnapped in February while en route to Iraq.
The Syrian Observatory for Human Rights, a Britain-based group that relies on a network of sources on the ground, said about 160 Kurds were abducted at the time and the hostages had been held in the Syrian IS stronghold of Raqa.
Human Rights Watch said meanwhile that IS subjected a group of Kobane teenagers to a string of abuses, including torture, during captivity.
The 153 schoolchildren were taken hostage in May, and suffered regular beatings at the hands of the jihadists before being released, said the New York-based watchdog.
Morning news break - November 5