The US has killed the leader of al-Qaeda, Ayman al-Zawahiri, in a drone strike in Afghanistan, President Joe Biden has confirmed.
He was killed in a counter-terrorism operation carried out by the CIA in the Afghan capital Kabul on Sunday.
He and Osama Bin Laden plotted the 9/11 attacks together, and he was one of America's most wanted terrorists.
Mr Biden said al-Zawahiri had "carved a trail of murder and violence against American citizens".
"From hiding, he co-ordinated al-Qaeda's branches and all around the world, including setting priorities for providing operational guidance and calling for and inspired attacks against US targets," the president said in a live television address from the White House.
"Now justice has been delivered and this terrorist leader is no more," he added.
The FBI updated its Most Wanted Terrorist poster on Monday with Zawahiri's status: "Deceased."
The 71-year-old Egyptian doctor took over al-Qaeda after the death of Bin Laden in 2011.
Mr Biden said he had given the final approval for the "precision strike" after months of planning.
Officials said Zawahiri was on the balcony of a safe house when the drone fired two missiles at him.
Other family members were present, but they were unharmed and only Zawahiri was killed in the attack, they added.
Mr Biden said Zawahiri's killing will bring closure to families of the nearly 3,000 victims of the 2001 attacks in which hijackers crashed passenger jets into landmark buildings in New York and Washington - including two skyscrapers in Manhattan.
Some 344 firefighters were also killed. Andrew Ansbro, president of the New York Firefighters Association thanked Mr Biden for "helping to bring another level of closure to all impacted by these attacks".
Mr Biden said that Zawahiri had also masterminded other acts of violence, including the suicide bombing of the USS Cole naval destroyer in Aden in October 2000 which killed 17 US sailors, and the 1998 attacks on the US embassies in Kenya and Tanzania, in which 223 people died.
Douglas Sidialo lost his sight in the Kenyan attack, and told BBC Newsday that while he never condones violence, news of Zawahiri's death is welcome.
"It's good that it has happened - that they're bringing down those who were behind these heinous and barbaric acts of cowardice around the world," Mr Sidialo said.
At the scene
Lyse Doucet, BBC Chief International Correspondent, Kabul
The attack in Kabul early Sunday morning rocked the centre of the capital - we heard it on our street nearby.
Since then, speculation has swirled about who or what hit this "empty house" in the Sherpur neighbourhood known for its gaudy multi-storied villas.
Hours after President Biden announced news of Zawahiri's death, workers in buildings nearby told us no one lived in the villa whose balconies are now covered with plastic sheeting. Adjacent shops were told by the Taliban to close their rooftops.
Taliban guards pushed journalists, sometimes forcefully, away from the scene.
The streets are quiet - this news is explosive. It again highlights the weaknesses of the 2020 US-Taliban deal.
The Taliban say they agreed Afghanistan would never again be a base to launch attacks against the United States. But they never agreed to sever all links to groups like al-Qaeda including their long-time brother-in-arms, Ayman al-Zawahiri.
A Taliban spokesman described the US operation as a clear violation of international principles - but did not mention Zawahiri. US officials maintained that the operation had had a legal basis.
Under a peace deal struck in 2020, the Taliban agreed not to allow al-Qaeda or any other extremist group to operate in areas under their control.
However, the Taliban and al-Qaeda are long-time allies and US officials said the Taliban were aware of Zawahiri's presence in Kabul, and he lived freely and in the open in the Afghan capital.
Zawahiri's killing comes nearly a year after Mr Biden withdrew US troops from Afghanistan, bringing an end to a 20-year military presence there, and allowing the Taliban to retake control of the country by force.
In background briefings, US intelligence officers accused Taliban affiliates of going to the safe house after the strike to try to cover up evidence of Zawahiri's presence there.
US Secretary of State Antony Blinken said that by hosting and sheltering Zawahiri in Kabul, the Taliban had "grossly violated" the peace agreement.
The drone strike is the first known US intervention inside Afghanistan since the military pullout last August and, despite the withdrawal, the decades-old "war on terror" grinds on, the BBC's North America Correspondent John Sudworth observes.
Days before the withdrawal, a miscalculated US drone strike killed 10 innocent people in Kabul, including an aid worker and seven children. The US said it had been a "tragic mistake" and had been aiming to target a local branch of the so-called Islamic State jihadist group.