How Joe Biden and his team decided to kill the world’s most wanted terrorist

(CNN) — Before he gave the order to kill Ayman al-Zawahiri, President Joe Biden wanted to intimately understand where the al Qaeda leader was hiding.

The U.S. drone strike that killed Zawahiri on his balcony in downtown Kabul was the product of months of highly secret planning by Biden and a tight circle of his senior advisers. Among the preparations was a small-scale model of Zawahiri’s safe house, constructed by intelligence officials and placed inside the White House Situation Room for Biden to examine as he debated his options.

For Biden, the opportunity to take out the world’s most wanted terrorist, one of the masterminds of the September, 11, 2001, attacks, was fraught with the risk of accidentally killing civilians in the Afghan capital — just as a U.S. drone strike did 11 months ago during the chaotic U.S. military withdrawal from the country.

Details of the strike and its planning were disclosed by a senior administration official as Biden was preparing to announce the mission Monday.

Throughout the months-long effort to plan this weekend’s strike, Biden repeatedly tasked his officials with ensuring civilians — including members of Zawahiri’s family — weren’t killed. None were, according to the White House.

Biden, who was isolating due to a COVID-19 infection during the final deliberations and authorization of the strike, emerged to proclaim success on a White House balcony Monday. It was a moment of victory for a president who has been besieged by domestic political troubles that stretch back to the deadly Afghanistan withdrawal a year ago.

“People around the world no longer need to fear the vicious and determined killer. The United States continues to demonstrate our resolve and our capacity to defend the American people against those who seek to do us harm,” Biden said from the Blue Room Balcony of the White House.

The president was first briefed in April on U.S. intelligence placing Zawahiri at a safe house in Kabul. American officials had been aware of a network supporting the terrorist leader in the Afghan capital for months, and had identified his wife, daughter and her children through multiple streams of intelligence.

The women utilized terrorist “tradecraft” that officials deemed designed to prevent anyone from following them to Zawahiri’s location in a Kabul neighborhood. Zawahiri himself didn’t leave the location after his arrival this year.

As the months wore on, U.S. officials began to establish patterns at the house — including Zawahiri emerging periodically onto the home’s balcony for sustained periods of time.

As officials continued to monitor his activities, an effort began in complete secret to analyze the building’s construction and structure, with an eye toward developing an operation to take out the world’s No. 1 terrorist target without compromising the building’s structural integrity.

At top of mind for Biden and members of his team was avoiding civilian deaths, including the members of Zawahiri’s family who were living in the building. Independent analysts from across the government were involved in identifying the other occupants of the house.

That the building was located in downtown Kabul presented its own challenges.

Surrounded by a residential neighborhood, officials were mindful their planning and information needed to be “rock solid” before presenting any options to Biden. And they were highly wary of leaks — only a “very small and select group” at a scattering of key agencies were informed of the plans being laid.

Biden was also concerned about how it might affect U.S. efforts to secure the return of Mark Frerichs, an American citizen taken hostage in Afghanistan more than two years ago. A senior administration official said Biden pressed his team to mitigate risks to those efforts, along with the ongoing attempts to relocate Afghans who helped the United Statesduring the war.

“Going forward with the Taliban, we will continue to hold them accountable for their actions. And we have made clear to them in the intervening days that we also expect them to take no action that would harm Mark Frerichs, as we were involved in the effort to secure his release after his long detention and captivity,” the official said.

As May and June wore on, Biden was kept abreast of the developments. On July 1, he gathered key national security officials in the White House Situation Room to receive a briefing on a proposed operation. CIA Director Bill Burns, Director of National Intelligence Avril Haines, national security adviser Jake Sullivan and his deputy Jon Finer, and Homeland Security Adviser Liz Sherwood Randall sat around the table.

Biden was “deeply engaged in the briefing and immersed in the intelligence,” a senior official said. He asked “detailed questions about what we knew and how we knew it.”

Of particular interest was a scale model of Zawahiri’s house that intelligence officials had constructed and brought into the White House for the president to examine. Biden questioned how the house might be lit by the sun, its construction materials and how the weather could affect any operation, the official said.

“He was particularly focused on ensuring that every step had been taken to ensure the operation would minimize that risk” of civilian casualties, according to the official.

Biden asked his team for more information about the building’s plans and how a strike might affect it. He flew to Camp David later that afternoon.

His team remained behind, convening multiple times in the Situation Room over the next weeks to complete their planning, answer the president’s questions and ensure they’d taken every contingency to minimize risks.

A parallel effort by senior administration lawyers was underway to examine the intelligence related to Zawahiri and establish the legal basis for the operation.

On July 25 — as he was isolating with COVID-19 in the White House residence — Biden brought his team back together to receive a final briefing. He again pressed at a “granular level,” the official said, asking about any additional options that could minimize civilian casualties.

He asked about the layout of the house — where the rooms were positioned behind windows and doors on the third floor — and what potential effect the strike would have.

And he went around his team, asking each official’s view.

At the end, he authorized a “precise tailored airstrike” to take out the target.

Five days later, two Hellfire missiles were fired into the balcony of the safe house in Kabul at 6:18 a.m. local time. “Multiple streams of intelligence” confirmed Zawahiri was killed.

Members of his family, who were in other areas of the home, were unharmed, the official said.

Biden, still isolating in the White House residence with a rebound COVID infection, was informed when the operation began and when it concluded