Tensions had been building over a new citizenship law that critics see as a threat to India's secular society and a way to further marginalize the country's 200 million Muslims.
As Prime Minister Narendra Modi feted U.S. President Donald Trump on his first state visit to India, a moment that was supposed to help cement the country's place on the world stage instead became an embarrassment.
On Sunday, as Modi prepared for Trump's arrival, a group of predominantly Muslim protesters demonstrated against the citizenship law, which fast-tracks naturalization for some religious minorities from neighboring countries but not Muslims, in a northeastern corner of the capital.
Kapil Mishra, a local leader of Modi's Bharatiya Janata Party who lost his Delhi state assembly seat in recent elections, held his own rally, urging police to clear our the protesters.
"They want Delhi to burn," Mishra said with a police official standing beside him. "I am saying this on behalf of the crowd that we will be peaceful until Trump is here. Once he leaves, we won't even listen to you if the roads aren't cleared of demonstrators," he said, referring to the police.
By Thursday, the death toll from the violence that followed, between Hindus and Muslims who had lived side by side for centuries but attacked each other with guns and swords, metal rods and axes, had risen to 30 and threatened to climb still higher.
The streets in Muslim and Hindu areas alike resembled a war zone. Helmeted, camouflaged and baton-wielding police marched down pavements littered with broken glass and charred vehicles as residents peered fearfully from behind neighborhood gates they had locked from inside.
O.P. Mishra, joint commissioner of police, leading the march, said he was responsible for instilling in the residents "a sense of confidence that peace has returned."
But a ban on groups of five or more people remained in place, and schools were closed.
Over a bullhorn, he urged people to go about their regular business, but acknowledged they were "apprehensive" to do so.
Muslims accused police of aiding Hindu mobs in the clashes, including setting fire to a mosque, pointing out charred copies of the Quran within its blackened walls.
Because New Delhi is a federal territory, Modi's government controls the city's police force, which reports to Home Minister Amit Shah — the prime minister's trusted confidante.
Down the street, police showed crude catapults on a burned and ransacked school building and behind a makeshift barrier that they accused Muslim rioters of using to attack Hindus living on the other side near an undamaged Hindu temple.
Police denied allegations that they aided the Hindu marauders or failed to stop violence against Muslims. But bystander videos appeared to show police standing by as Hindu men attacked Muslims, or commanded Muslims to sing India's national anthem, and the Delhi High Court on Wednesday chided police for not stopping the mobs.
"The blood is on the hands of Kapil Mishra. He is responsible for the riots," said Hari Singh Solanki, a Hindu whose son was shot and killed during the riots.
Mishra, the local politician from Modi's party, did not respond to repeated phone calls and messages seeking comment.
Since cruising back to power in a general election last May, Modi has aggressively carried out his party's Hindu nationalist agenda, from stripping restive Kashmir, India's only Muslim-majority region, of its statehood, to supporting a Supreme Court ruling allowing a Hindu temple to be built on the site of a mosque torn down by Hindu mobs in 1992.
The citizenship law, seen as a precursor to a nationwide citizens registry that would culminate in the jailing or deportation of foreigners, appeared to embolden both his followers and his opponents.
The rampage by the mobs, mostly Hindus attacking Muslim homes and places of worship, was a jarring reminder of the rising religious tensions under Modi.
On Wednesday, the U.S. Commission on International Religious Freedom said it was deeply troubled by the violence and cited accounts that police had not intervened in attacks against Muslims.
"The government is failing in its duty to protect its citizens," Commissioner Anurima Bhargava wrote.
India's External Affairs Ministry said the commission's comments were "factually inaccurate and misleading" and appeared to be "aimed at politicizing the issue."