A military judge today acquitted former US intelligence analyst Bradley Manning of the most serious charge against him, aiding the enemy, but convicted him of espionage, theft and computer fraud charges for giving thousands of classified secrets to the anti-secrecy site WikiLeaks.

The judge deliberated for about 16 hours over three days before reaching her decision in a case that drew worldwide attention. Supporters hailed Manning as a whistleblower. The US government called him an anarchist computer hacker and attention-seeking traitor.

The WikiLeaks case is by far the most biggest release of classified material in US history. Manning's supporters included Pentagon Papers leaker Daniel Ellsberg, who in the early 1970s spilled a secret Defence Department history of US involvement in Vietnam that showed that the US government repeatedly misled the public about the war.

Manning's sentencing begins tomorrow at Fort Meade, Maryland. The charge of aiding the enemy was the most serious of 21 counts and carried a potential life sentence.

His trial was unusual because he acknowledged giving WikiLeaks more than 700,000 battlefield reports and diplomatic cables, plus video of a 2007 US helicopter attack that killed civilians in Iraq and a Reuters news photographer and his driver. In the footage, airmen laughed and called targets "dead bastards."

Manning pleaded guilty earlier this year to lesser offences that could have brought him 20 years behind bars, yet the government continued to pursue the original, more serious charges.

Manning has said he leaked the material to expose the US military's "bloodlust" and disregard for human life, and what he considered American diplomatic deceit. He said he chose information he believed would not the harm the United States, and he wanted to start a debate on military and foreign policy. He did not testify at his trial.

Defence lawyer David Coombs portrayed Manning as a "young, naive but good-intentioned" soldier who was in emotional turmoil, partly because he was a gay service member at a time when homosexuals were barred from serving openly in the US military.

Mr Coombs said Manning could have sold the information or given it directly to the enemy, but he gave them to WikiLeaks in an attempt to "spark reform" and provoke debate. A counter-intelligence witness valued the Iraq and Afghanistan war logs at about 5.7 million dollars, based on what foreign intelligence services had paid in the past for similar information.

Mr Coombs said Manning had no way of knowing whether al Qaida would access the secret-spilling website, and a 2008 counterintelligence report showed the government itself didn't know much about the site.

The lead prosecutor, Maj Ashden Fein, said Manning knew the material would be seen by al Qaida, a key point prosecutor needed to prove to get an aiding the enemy conviction. Even Osama bin Laden had some of the digital files at his compound in Pakistan when he was killed.

The Manning trial unfolded as another low-level intelligence worker, Edward Snowden, revealed US secrets about surveillance programmes. Snowden, a civilian employee, has told The Guardian newspaper his motives were similar to Manning's, but he said his leaks were more selective.

Manning's supporters believed a conviction for aiding the enemy would have a chilling effect on leakers who want to expose wrongdoing by giving information to websites and the media.

Before Snowden, Manning's case was the most high-profile espionage prosecution for the Obama administration, which has been criticised for its crackdown on leakers. The espionage cases brought since Mr Obama took office are more than in all other presidencies combined.

The material WikiLeaks began publishing in 2010 documented complaints of abuses against Iraqi detainees, a US tally of civilian deaths in Iraq and America's weak support for the government of Tunisia - a disclosure that Manning supporters said helped trigger the Middle Eastern pro-democracy uprisings known as the Arab Spring.

The Obama administration said the release threatened to expose valuable military and diplomatic sources and strained America's relations with other governments.

Prosecutors said during the trial Manning relied on WikiLeaks and its founder Julian Assange for guidance on what secrets to "harvest" for the organisation, starting within weeks of his arrival in Iraq in late 2009.

Federal authorities are looking into whether Assange can be prosecuted. He has been holed up in the Ecuadorean Embassy in London to avoid extradition to Sweden on sex-crimes allegations.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.