After years of dead ends and promising leads gone cold, the big break came last August.

A trusted courier of Osama bin Laden’s whom American spies had been hunting for years was finally located in a compound 35 miles north of the Pakistani capital, close to one of the hubs of American counterterrorism operations. The property was so secure, so large, that American officials guessed it was built to hide someone far more important than a mere courier.

What followed was eight months of painstaking intelligence work, culminating in a helicopter assault by American military and intelligence operatives that ended in the death of Bin Laden on Sunday and concluded one of history’s most extensive and frustrating manhunts.

American officials said that Bin Laden was shot in the head after he tried to resist the assault force, and that one of his sons died with him.

For nearly a decade, American military and intelligence forces had chased the specter of Bin Laden through Pakistan and Afghanistan, once coming agonizingly close and losing him in a pitched battle at Tora Bora, in the mountains of eastern Afghanistan. As Obama administration officials described it, the real breakthrough came when they finally figured out the name and location of Bin Laden’s most trusted courier, whom the Qaeda chief appeared to rely on to maintain contacts with the outside world.

Detainees at the prison at Guantánamo Bay, Cuba, had given the courier’s pseudonym to American interrogators and said that the man was a protégé of Khalid Shaikh Mohammed, the confessed mastermind of the Sept. 11 attacks.

American intelligence officials said Sunday night that they finally learned the courier’s real name four years ago, but that it took another two years for them to learn the general region where he operated.

Still, it was not until August that they tracked him to the compound in Abbottabad, a medium-sized city about an hour’s drive north of Islamabad, the capital of Pakistan.

C.I.A. analysts spent the next several weeks examining satellite photos and intelligence reports to determine who might be living at the compound. A senior administration official said that by September the C.I.A. had decided that there was a “strong possibility” that Bin Laden himself was hiding there.

It was hardly the spartan cave in the mountains that many had envisioned as Bin Laden’s hiding place. Rather, it was a mansion on the outskirts of the town’s center, set on an imposing hilltop and ringed by 12-foot-high concrete walls topped with barbed wire.

The property was valued at $1 million, but it had neither a telephone nor an Internet connection. Its residents were so concerned about security that they burned their trash rather putting it on the street for collection the way their neighbors did.

American officials believed that the compound, built in 2005, was designed for the specific purpose of hiding Bin Laden.

Months more of intelligence work would follow before American spies felt highly confident that it was indeed Bin Laden and his family who were hiding there — and before President Obama determined that the intelligence was solid enough to begin planning a mission to go after the Qaeda leader.

On March 14, Mr. Obama held the first of what would be five national security meetings in the course of the next six weeks to go over plans for the operation.

The meetings, attended by only the president’s closest national security aides, took place as other White House officials were scrambling to avert a possible government shutdown over the budget.

Four more similar meetings to discuss the plan would follow, until President Obama gathered his aides one final time last Friday.

At 8:20 that morning, Mr. Obama met with Thomas Donilon, the national security adviser; John O. Brennan, the counterterrorism adviser; and other senior aides in the Diplomatic Room at the White House. The president was traveling to Alabama later that morning to witness the damage from last week’s tornadoes. But first he had to approve the final plan to send operatives into the compound where the administration believed that Bin Laden was hiding.

Even after the president signed the formal orders authorizing the raid, Mr. Obama chose to keep Pakistan’s government in the dark about the operation.

“We shared our intelligence on this compound with no other country, including Pakistan,” a senior administration official said.

It is no surprise that the administration chose not to tell Pakistani officials. The United States never really believed the Pakistanis’ insistence that Bin Laden was not in their country. American diplomatic cables in recent years show constant American pressure on Pakistan to help find and kill Bin Laden.

Asked about the Qaeda leader’s whereabouts during a Congressional visit to Islamabad in September 2009, the Pakistani interior minister, Rehman Malik, replied that he “’had no clue,” but added that he did not believe that Bin Laden was in the area. Bin Laden had sent his family to Iran, so it made sense that he might have gone there himself, Mr. Malik argued. Alternatively, he might be hiding in Saudi Arabia or Yemen, or perhaps he was already dead, he added, according to a cable from the American Embassy that is among the collection obtained by WikiLeaks.

The mutual suspicions have grown worse in recent months, particularly after Raymond A. Davis, a C.I.A. contractor, shot two men on a crowded street in Lahore in January.

On Sunday, the small team of American military and intelligence operatives poured out of helicopters for their attack on the heavily fortified compound.

American officials gave few details about the raid itself, other than to say that a firefight broke out shortly after the commandos arrived and that Bin Laden had tried to “resist the assault force.”

When the shooting had stopped, Bin Laden and three other men lay dead. One woman, whom an American official said had been used as a human shield by one of the Qaeda operatives, was also killed.

The Americans collected Bin Laden’s body and loaded it onto one of the remaining helicopters, and the assault force hastily left the scene.

Obama administration officials said that one of helicopters went down during the mission because of mechanical failure, but that no Americans were injured.

It was 3:50 Eastern time on Sunday afternoon when President Obama received the news that Bin Laden had tentatively been identified, most likely after a series of DNA tests.

The Qaeda leader’s body was flown to Afghanistan, the country where he made his fame fighting and killing Soviet troops during the 1980s.

Join the Conversation

We invite you to use our commenting platform to engage in insightful conversations about issues in our community. Although we do not pre-screen comments, we reserve the right at all times to remove any information or materials that are unlawful, threatening, abusive, libelous, defamatory, obscene, vulgar, pornographic, profane, indecent or otherwise objectionable to us, and to disclose any information necessary to satisfy the law, regulation, or government request. We might permanently block any user who abuses these conditions.

If you see comments that you find offensive, please use the “Flag as Inappropriate” feature by hovering over the right side of the post, and pulling down on the arrow that appears. Or, contact our editors by emailing moderator@scng.com.