There was a British man who nearly became the second shoe bomber and took his orders directly from Osama bin Laden.
There was a man from Long Island who, after dropping out of the United States Army during training, traveled to Afghanistan to fight American troops alongside the Taliban.
And there were two high-school classmates from Flushing, Queens, who trained at a terrorist camp in Pakistan and returned to the United States with orders to stage suicide attacks on New York City subways during rush hour.
This was the cast of characters that took the stand as cooperating witnesses for the government in the trial of Adis Medunjanin, a Queens man who is accused of participating in the subway bombing plot, which federal officials have called one of the most serious threats to American security since the Sept. 11 attacks.
The jury hearing the case in Federal District Court in Brooklyn is expected to begin its deliberations on Monday. Mr. Medunjanin faces up to life in prison if convicted.
A rare terrorism trial stemming from a credible plot that was days away from being executed has yielded the even rarer spectacle of admitted terrorists testifying for the government they had sworn to fight â" and against one of their own.
The testimony of the four men â" Zarein Ahmedzay, Saajid Badat, Bryant Neal Vinas and Najibullah Zazi â" was interspersed with moments of tears, conviction and regret, and provided a detailed and unusually human window into a normally secretive world, as each man described the journey that led him to the cusp of committing mass murder on behalf of Al Qaeda.
Though there are limits to what can be extrapolated from their personal tales, common themes emerged. They were all young Muslim men living in the West who were influenced by the fiery preaching of radical clerics: most often by Anwar al-Awlaki, who called on all Muslims to take up arms.
All of them traveled to the Middle East to fight against American troops in protest of what they viewed as the occupation of Afghanistan. They were all recruited to terrorist training camps, where they were told by Qaeda leaders that their passports made them far more valuable as suicide bombers back home, and they all struggled with the moral implications of their actions as they prepared to kill as many people as possible.
All four men pleaded guilty: three are testifying in the hope of leniency at sentencing, while the fourth, Mr. Badat, was released early from a prison in Britain in exchange for his cooperation.
Mr. Zazi said he hoped to get âa second chance.â
The government has highlighted the cooperation of four convicted terrorists as a sign of its success in undermining groups like Al Qaeda by using the threat of punishment to get their members to turn on one another, in much the same way as prosecutors took on the mob in an earlier era.
âAs you apply a law enforcement model to these cases, people always cooperate,â said Anthony S. Barkow, a former federal prosecutor who specialized in terrorism cases and now works in private practice. âIt took a long time in organized crime; it is taking less time with national security.â
On the stand, the men professed their Islamic faith but distanced themselves from the Qaeda leadership, which one man said had âbrainwashedâ him and another accused of using young religious fighters as pawns.
Their appearances in a usually sleepy courthouse in the heart of Brooklyn â" which went unnoticed by the families who played each day in the park outside â" have been used by some as evidence that the United States justice system was well positioned to handle terrorism cases.
âThe federal courts are not just about providing due process and protecting defendantsâ rights,â said Jonathan Hafetz, a professor at Seton Hall University School of Law who focuses on national security. âThere is an information-producing function that allows the public to see how terrorists act and how the government acts to prosecute these terrorists.â
He added, âThatâs something that we lose when we deal with more secretive processes like military commissions.â
The testimonies of Mr. Badat and Mr. Vinas were unrelated to the 2009 subway bombing plot that was the subject of Mr. Medunjaninâs trial. Instead, they were called as expert witnesses about Al Qaeda to corroborate facts about terrorist training camps in Afghanistan and Pakistan.