Millions of Shiite Muslims, beating their heads and chests in mourning, packed the Iraqi city of Karbala on Thursday for the culmination of one of the world's largest religious events.
The faithful have for days been streaming through the golden-domed mausoleum of Imam Hussein, the Prophet Mohammed's grandson who was killed in 680 AD, despite the threat of jihadist attacks.
Many in the sea of black-clad devotees swarming the shrine walked days to reach Karbala, sometimes from cities as far afield as Basra, about 500 kilometres (300 miles) away by road.
"I arrived in Karbala after walking for 12 days," said Mohammed Hussein Jassem, a labourer from Iraq's deep south.
"I found a lot of services on the road," he said, referring to the thousands of "mawakeb", spots where tents are erected by volunteers to serve the pilgrims food and beverages.
Baghdad and much of the country south of the capital come to a standstill in the days preceding Arbaeen, as several major motorways are reserved for pilgrims on foot on one side and authorised vehicles on the other.
Arbaeen, which means "forty" in Arabic, is an observance that peaks on the 40th day after the anniversary of Hussein's death, but the pilgrimage takes place over several days running up to it.
"More than 20 million pilgrims, among them five million Arabs and foreigners, took part in the pilgrimage," Staff Major General Qais Khalaf told a news conference in Karbala.
"I announce the success of the security plan for the Arbaeen pilgrimage," which involved 25,000 security personnel, he said.
The interior ministry also issued a statement Thursday evening announcing the end of the pilgrimage and praising the performance of security personnel.
And the security command responsible for Baghdad said that security forces killed two suicide bombers before they could attack pilgrims south of the capital on Thursday.
There was no independent confirmation of the attempted attack.
Signup to our newsletter and follow us on Facebook and Twitter!
At least six people were killed in two separate attacks targeting marching pilgrims on Monday in Baghdad, according to police and hospital sources, and the masses of pilgrims are also vulnerable to attack on their way home.
- Political message -
According to the authorities, at least 17 million devotees took part last year, in what was then seen as a show of force in the face of the threat posed by the Islamic State jihadist group, which overran large areas in 2014.
Protecting the roads to Karbala and Shiite Islam's holiest sites were important priorities for Iraqi security forces and militiamen after the IS offensive.
Iranian drones were deployed around the city "to detect any potential threat," said Sahib Hamid, a member of the provincial council and of the Badr organisation, a Tehran-backed movement that has one of the country's most powerful militias.
Karbala, a city of around 700,000 people, lies between the Euphrates river and the desert expanses of Anbar, a Sunni province where security forces face some of their toughest battles against IS.
"I hope the spirit of solidarity and love prevailing among the people here will continue, not only in those days that we are commemorating the tragedy that befell Imam Hussein," said Jassem, the labourer.
He looked exhausted as he made his way towards the shrine, swept away by the unstoppable flow of faithful waving flags, including some bearing Hussein's image, and chanting their allegiance to him.
But he insisted on delivering a message to Iraq's fractious political class.
"Our call to our politicians is to change their ways as Imam Hussein came out for the sake of reforms," he said.
Many others voiced similar opinions during the mourning rituals of Arbaeen, which came after a year that saw a wave of protests demanding more transparency and accountability from the state as well as basic services such as electricity and water.
"I wish the millions of people gathered here could march peacefully on Tahrir Square in Baghdad to achieve reforms," said Saeed Abdulhussein, from Diwaniyah.
"Imam Hussein rose up for the sake of reforms and I think this goal is even more important than performing the pilgrimage and praying at the shrine," said the 50-year-old, who walks with a stick.