In this 1998 file photo made available on March 19, 2004, Ayman al-Zawahri poses for a photograph in Khost, Afghanistan. Al-Zawahri, the top al-Qaida leader, was killed by the U.S. over the weekend in Afghanistan. President Joe Biden is scheduled to speak about the operation on Monday night, Aug. 1, 2022, from the White House in Washington. (AP Photo/Mazhar Ali Khan, File)

The doors of jihad opened for Ayman al-Zawahri as a young doctor in a Cairo clinic, when a visitor arrived with a tempting offer: a chance to treat Islamic fighters battling Soviet forces in Afghanistan.

With that offer in 1980, al-Zawahri embarked on a life that over three decades took him to the top of the most feared terrorist group in the world, al-Qaida, after the death of Osama bin Laden.

Already an experienced militant who had sought the overthrow of Egypt's "infidel" regime since the age of 15, al-Zawahri took a trip to the Afghan war zone that was just a few weeks long, but it opened his eyes to new possibilities.

What he saw was "the training course preparing Muslim mujahedeen youth to launch their upcoming battle with the great power that would rule the world: America," he wrote in a 2001 biography-cum-manifesto.

Al-Zawahri, 71, was killed over the weekend by a U.S. drone strike in Afghanistan. President Joe Biden announced the death Monday evening in an address to the nation.

The strike is likely to lead to greater disarray within the organization than did bin Laden's death in 2011, since it is far less clear who his successor would be.

Al-Zawahri became crucial to turning the jihadi movement to target the United States as the right-hand man to bin Laden, the young Saudi millionaire he met in the Afghanistan-Pakistan region. Under their leadership, the al-Qaida terror network carried out the deadliest attack ever on American soil, the Sept. 11, 2001, suicide hijackings.

The attacks on the World Trade Center and Pentagon made bin Laden America's Enemy No. 1. But he likely could never have carried it out without his deputy.

While bin Laden came from a privileged background in a prominent Saudi family, al-Zawahri had the experience of an underground revolutionary. Bin Laden provided al-Qaida with charisma and money, but al-Zawahri brought tactics and organizational skills needed to forge militants into a network of cells in countries around the world.

"Bin Laden always looked up to him," said terrorism expert Bruce Hoffman of Georgetown University. Al-Zawahri "spent time in an Egyptian prison, he was tortured. He was a jihadi from the time he was a teenager."

When the 2001 U.S. invasion of Afghanistan demolished al-Qaida's safe haven and scattered, killed and captured its members, al-Zawahri ensured al-Qaida's survival. He rebuilt its leadership in the Afghan-Pakistan border region and installed allies as lieutenants in key positions.

He also became the movement's public face, putting out a constant stream of video messages while bin Laden largely hid.

With his thick beard, heavy-rimmed glasses and a prominent bruise on his forehead from prostration in prayer, he was notoriously prickly and pedantic. He picked ideological fights with critics within the jihadi camp, wagging his finger scoldingly in his videos. Even some key figures in al-Qaida's central leadership were put off, calling him overly controlling, secretive and divisive - a contrast to bin Laden, whose soft-spoken presence many militants described in adoring, almost spiritual terms.

Yet he reshaped the organization from a centralized planner of terror attacks into the head of a franchise chain. He led the creation of a network of autonomous branches around the region, including in Iraq, Saudi Arabia, Yemen, North Africa, Somalia and Asia.

In the decade after 9/11, al-Qaida inspired or had a direct hand in attacks in all those areas as well as Europe, Pakistan and Turkey, including the 2004 train bombings in Madrid and the 2005 transit bombings in London. More recently, the al-Qaida affiliate in Yemen proved itself capable of plotting attacks on U.S. soil with an attempted 2009 bombing of an American passenger jet and an attempted package bomb the following year.

After Bin Laden was killed in a U.S. raid on his compound in Abbottabad, Pakistan, al-Qaida proclaimed al-Zawahri its paramount leader less than two months later.

The jihad against America "does not halt with the death of a commander or leader," he said. "Chase America, which killed the leader of the mujahedeen and threw his body into the sea."

The 2011 Arab Spring uprisings around the Mideast threatened a major blow to al-Qaida, showing that jihad was not the only way to get rid of Arab autocrats. It was mainly pro-democracy liberals and leftists who led the uprising that toppled Egypt's President Hosni Mubarak, the longtime goal al-Zawahri failed to achieve.

But al-Zawahri sought to co-opt the wave of uprisings, insisting that they would have been impossible if the 9/11 attacks had not weakened America. And he urged Islamic hard-liners to take over in the nations where leaders had fallen.

Al-Zawahri was born June 19, 1951, the son of an upper-middle-class family of doctors and scholars in the Cairo suburb of Maadi. His father was a pharmacology professor at Cairo University's medical school and his grandfather, Rabia al-Zawahri, was the grand imam of Al-Azhar University, a premier center of religious study.

From an early age, al-Zawahri was enflamed by the radical writings of Sayed Qutb, the Egyptian Islamist who taught that Arab regimes were "infidel" and should be replaced by Islamic rule.

In the 1970s, as he earned his medical degree as a surgeon, he was active in militant circles. He merged his own militant cell with others to form the group Islamic Jihad and began trying to infiltrate the military - at one point even storing weapons in his private clinic.

Then came the 1981 assassination of Egyptian President Anwar Sadat by Islamic Jihad militants. The slaying was carried out by a different cell in the group - and al-Zawahri wrote that he learned of the plot only hours before the assassination. But he was arrested along with hundreds of other militants and served three years in prison.

During his imprisonment, he was reportedly tortured heavily, a factor some cite as turning him more violently radical.

After his release in 1984, al-Zawahri returned to Afghanistan and joined the Arab militants from across the Middle East fighting alongside the Afghans against the Soviets. He courted bin Laden, who became a heroic figure for his financial support of the mujahedeen.

Al-Zawahri followed bin Laden to his new base in Sudan, and from there he led a reassembled Islamic Jihad group in a violent campaign of bombings aimed at toppling Egypt's U.S.-allied government.

In the most daring attack, Jihad and other militants tried to assassinate Egyptian President Hosni Mubarak during a 1995 visit to Ethiopia. Mubarak escaped the hail of gunfire aimed at his motorcade, and his security forces all but crushed the militant movement in Egypt in the crackdown that followed.

The Egyptian movement failed. But al-Zawahri would bring to al-Qaida the tactics that he honed in Islamic Jihad.

He promoted the use of suicide bombings, to become al-Qaida's hallmark. He plotted a 1995 suicide car bombing of Egypt's embassy in Islamabad that killed 16 people - presaging the more devastating 1998 al-Qaida bombings of the U.S. embassies in Kenya and Tanzania that killed more than 200, attacks al-Zawahri was indicted for in the United States.

In 1996, Sudan expelled bin Laden, who took his fighters back to Afghanistan, where they found a safe haven under the radical Taliban regime. Once more, al-Zawahri followed.

Two years later, their bond was sealed when bin Laden, al-Zawahri and other militant leaders issued the "Declaration of Jihad against Jews and Crusaders." It announced that the United States was Islam's top enemy and instructed Muslims that it was their religious duty to "kill the Americans and their allies."

The message consecrated a dramatic shift that al-Zawahri underwent under bin Laden's influence, changing from his longtime strategy of attacking the "near enemy" - U.S.-allied Arab regimes like Egypt - to target the "far enemy," the United States itself.

Some in al-Zawahri's Islamic Jihad broke away, opposed to the move. And some al-Qaida militants whose association with bin Laden predated al-Zawahri's always saw him as an arrogant intruder.

"I have never taken orders from al-Zawahri," Fazul Abdullah Mohammed, one of the network's top figures in East Africa until his 2011 death, sneered in a memoir posted online in 2009. "We don't take orders from anyone but our historical leadership."

Soon after the alliance came the bombings of the U.S. embassies in Africa, followed by the 2000 suicide bombing of the USS Cole off Yemen, an attack al-Zawahri is believed to have helped organize.

When the U.S. invaded Afghanistan, al-Zawahri and bin Laden fled into Pakistan as a U.S. airstrike killed al-Zawahri's wife and at least two of their six children in the southern Afghan city of Kandahar.

The CIA came tantalizingly close to possibly capturing al-Zawahri in 2003 and killing him in 2004. The CIA thought it finally had al-Zawahri in its sights in 2009, only to be tricked by a double agent who blew himself up, killing seven agency employees and wounding six more in Khost, Afghanistan.

In his 2001 treatise, "Knights Under the Prophet's Banner," al-Zawahri set the long-term strategy for the jihadi movement - to inflict "as many casualties as possible" on the Americans, while trying to establish control in a nation as a base "to launch the battle to restore the holy caliphate" of Islamic rule across the Muslim world.

Al-Qaida did make inroads in Europe. The bombers in the Madrid attacks that killed 191 were said to have been inspired by al-Qaida, although direct links remain uncertain. Al-Zawahri claimed al-Qaida responsibility for the 2005 London transit bombings that killed 52, saying some perpetrators trained in al-Qaida camps.

Not all terror campaigns were successful. Al-Qaida's branch in Saudi Arabia was crushed by 2006. Al-Zawahri himself had to write to the head of al-Qaida's branch in Iraq, Abu Musab al-Zarqawi, to rein in his brutal attacks on Iraqi Shiites, which were hurting the network's image among Muslims.

That underlined al-Zawahri's ultimate failure. With his concentration on a "Muslim vanguard" carrying out dramatic attacks, he never gained widespread popular support for al-Qaida in the Islamic world beyond a fringe of radical sympathizers.

His answer, in "Knights Under the Prophet's Banner," was for jihadis to continue hitting Americans, hoping to exploit anti-U.S. sentiment and draw in the public. He echoed that strategy in a June 2011 video eulogy to his slain boss.

Bin Laden "terrified America in his life," he said, and "will continue to terrify it after his death."

___

Former Associated Press Writer Adam Goldman in Washington contributed to this story.