(CNN) -- A military judge has found Pfc. Bradley Manning, accused of the largest leak of classified information in U.S. history, not guilty of aiding the enemy -- a charge that would have carried a maximum sentence of life in prison.
He was found guilty of most of the remaining charges against him, with the judge accepting some of the guilty pleas he made previously to lesser charges.
If he had been found guilty on the aiding the enemy charge, Manning could have been sentenced to life in prison. He could be sentenced to up to 20 years behind bars on some of the other charges.
Manning already has spent three years in custody.
Whether Manning is a whistle-blower or a traitor to his country has been hotly debated.
Authorities have accused him of delivering three quarters of a million pages of classified documents and videos to the secret-sharing site WikiLeaks, which has never confirmed the soldier was the source of its information. The material covered numerous aspects of U.S. military strategy in Iraq, gave what some called a ground view of events in the Afghanistan war and revealed the inner workings of U.S. State Department diplomacy in leaked cables.
When he entered his guilty pleas on the lesser charges this year, Manning spent more than an hour in court reading a statement about why he leaked the information.
He said the information he passed on "upset" or "disturbed" him, but there was nothing he thought would harm the United States if it became public. Manning said he thought the documents were old and the situations they referred to had changed or ended.
"I believed if the public was aware of the data, it would start a public debate of the wars," he said during his court-martial. He was "depressed about the situation there," meaning Iraq, where he was stationed as an intelligence analyst.
The young soldier from a small town in Oklahoma said that he first tried to give the information to The Washington Post, but a reporter there didn't seem like she took him seriously.
He left a voice mail for The New York Times and sent an e-mail to the newspaper but, he says, he didn't hear back.
So, he said, he decided to give the information to WikiLeaks.
At some point, according to a California hacker Adrian Lamo, who says he communicated via instant messaging with Manning, the soldier confessed to possessing sensitive documents.
Shortly after alleged texts between Manning and Lamo were published in 2010, Lamo spoke to CNN.
He said he turned Manning in to authorities. His reason?
"... it seemed incomprehensible that someone could leak that massive amount of data and not have it endanger human life," Lamo said. "If I had acted for my own comfort and convenience and sat on my hands with that information, and I had endangered national security ... I would have been the worst kind of coward."
As Manning's court case dragged on, in December 2011 his defense argued that the military didn't heed warning signs that the soldier was falling apart mentally.
A few months before Manning was arrested, Army command referred him to a psychologist for evaluation because he appeared to be "under considerable stress" and "did not appear to have any social support system and seemed hypersensitive to any criticism" and "was potentially a danger to himself and others."
WikiLeaks, Assange and Manning
Manning was arrested within months of a video that appeared on WikiLeaks in April 2010. The secrets-busting site called it "Collateral Murder." It appeared to be shot from a U.S. Apache helicopter as it fired on a group of people in Baghdad in 2007. A dozen people were killed; among them were a Reuters TV news cameraman and his driver.
The video showed that Reuters' Saeed Chmagh survived an initial strafing by the helicopter, but apparently died when it opened fire again -- this time on people attempting to get him off the sidewalk where he lay and into a van.
The footage quickly made news, elevating what was once a virtually unknown WikiLeaks to a globally recognized name. Later, a U.S. investigation into the attack found that the crew mistook the journalists' cameras for weapons while seeking out insurgents who had been firing at American troops in the area.
But, according to court documents and testimony, by the time the world saw the video, Manning had already downloaded hundreds of thousands of classified documents and videos.
Within months, the soldier had been accused of using his computer skills to commit what the government called treason.
While Manning sat behind bars, WikiLeaks and its chief Julian Assange became household names.
WikiLeaks published a trove of documents related to the Afghanistan war in 2010, and followed that with a headline-making document dump about the Iraq war and then another release of diplomatic messages by U.S. State Department diplomats.
"We call those types of people that are willing to risk ... being a martyr for all the rest of us, we call those people heroes," Assange
has told CNN's Jake Tapper. "Bradley Manning is a hero."
Assange described the case against Manning, specifically the aiding the enemy charge, as a serious attack against investigative journalism.
"It will be the end, essentially, of national security journalism in the United States," he said on the eve of the verdict.
Assange spoke from the Ecuadoran Embassy in London. He sought refuge there to avoid extradition to Sweden, where he is wanted for questioning over allegations of sex crimes.
Assange has said he thinks the claims against him are Washington's way of getting him arrested so that he can be extradited to the United States to face charges.
CNN's Larry Shaughnessy and Dana Ford contributed to this report.
™ & © 2013 Cable News Network, Inc., a Time Warner Company. All rights reserved.