Sunni militants claimed vast swaths of Iraq last month, thanks largely to the collapse of the Iraqi army.
But three weeks later, the army has been able to win back some territory. The gains come after a call to arms by Shiite religious leaders in the holy city of Najaf, where deep emotion and symbolism are inspiring Shiite volunteers.
Najaf is home to the ancient Valley of Peace cemetery, which seems crowded. Miles of desert stretch under blistering sun, the gilded domes of mausoleums pressed up against the dusty headstones of the ordinary dead.
Shiite Muslims traditionally bury their loved ones in this cemetery. And as crowded as it is, more bodies are flooding in: Young men, with flags draped over their coffins to show they died in battle.
Muhsin al-Awasy speaks as his cousin's body is ceremonially washed.
"He was a youth, not married, 20 years old, from a special forces battalion in Mosul. They withdrew to Samarra," Awasy says. "At a checkpoint there he was hit with a mortar round and died with one or two others."
As the women weep and pray, the male relatives cluster round to say they've been to many soldiers' funerals recently — and they'll go to many more, until the Sunni militants trying to take over the country are pushed out.
"Even though he died," Awasy says of his cousin, "all of us are ready to volunteer."
About a month ago, Iraq's armed forces were collapsing. Maybe a third of the army fled as Sunni fighters led by extremists seized city after city. But now, tens of thousands of men are volunteering, swearing to fight and die for their country. The army can now push back in some places, like the city of Tikrit, and the mourners say they're proud.
"The Iraqi army is making progress," Awasy says. "I hear they have liberated Tikrit this morning."
While the Iraqi army has been fighting in Tikrit in recent days, most reports point to a city that's still contested.
Still, a key to this turnaround is in Najaf, a quiet city where Shiite clerics hold court around a golden shrine. When the army fell apart, the most eminent Shiite cleric, Grand Ayatollah Ali al-Sistani, called on men to fight. In doing so, he broke with Iraqi tradition that religious leaders stay out of politics.
One younger cleric, Ali al-Najafi, explains that Sistani was forced to intervene because the military is ineffective and political leaders are uninspiring.
"They were not prepared to thwart this attack," Najafi says. "It became evident that there were two problems: a problem with organization and a problem with morale. The soldier or the fighter couldn't find the right motive to stand strong and fight."
Najafi hints that Iraq's highly-paid politicians are depraved, like Saddam Hussein, while the clerics are different. People respect the clergy, so they responded to the call to fight.
But Najafi knows there's a risk that a call coming from the Shiite establishment could be used as justification for the sectarian slaughter of Sunnis.
"Yes, there is concern that the situation will be taken advantage of to fuel the sectarian crisis," he says, "and we are making a great effort, and even giving our blood, to make sure this division does not come to Iraq."
Najafi says Shiite clerics are reaching out to Sunni ones and stressing to fighters that it's just as important to defend Sunni areas. But the recruitment drive does have sectarian overtones; many men have joined not the army, but rather irregular Shiite militias.
In the heart of the graveyard, the flag of one such militia flutters in a roasting wind. Each armed group has its own space here. In one, the wind peels up the corners of posters held down with bricks on new graves. In another, two fresh mounds lie side by side.
Each grave has pictures on it: Shiite shrines, the Shiite imams Ali and Hussein, Shiite ayatollahs from Iran.
Salah al-Mohammad has come to the cemetery to wash his brother's grave in rosewater and burn incense. His brother died fighting in Syria with the Asaib Ahl al-Haq Shiite militia, defending a Shiite shrine. Now, Mohammad is joining the army.
"Just 40 days ago I lost my brother, but now I've volunteered, too," he says. "When the clerics called us to volunteer, we did."
Despite the best efforts of clerics and politicians to paint the battle as patriotic and nonsectarian, Mohammad sees things in starkly Shiite terms. He says he's going to fight for the Shiite imams, and he calls the mainly Sunni insurgency infidels.
Copyright 2016 NPR. To see more, visit http://www.npr.org/.