US President Barack Obama has commuted the sentence of Chelsea Manning, who is serving 35 years behind bars for giving classified US data and documents to Wikileaks, allowing her to go free nearly three decades early.
WikiLeaks founder Julian Assange welcomed the decision calling for an end to a "war on whistleblowers".
According to the commutation granted on Tuesday, Manning would now be released on May 17.
The transgender soldier has been lodged in prison after being convicted in August 2013. She also attempted suicide twice last year.
The White House said after Othe commutation, Manning, a military analyst, would now be released on May 17, 2017.
She was sentenced to 35 years of imprisonment on charges of illegally obtaining and passing on the classified documents to WikiLeaks.
According to the White House, Manning's offences included one specification of wrongful and wanton publication to the internet intelligence belonging to the United States, five specifications of stealing, purloining or knowingly converting US government records.
It also included six specifications of wilful communication of information relating to the national defence, one specification of wilful communication of information in unlawful possession; and one specification of wilful communication of information relating to the national defence by exceeding authorised access to a US government computer.
The New York Times said the commutation also relieved the Department of Defence of the difficult responsibility of her incarceration as she pushes for treatment for her gender dysphoria, including sex reassignment surgery, that the military has no experience of providing.
Earlier in the day, the White House ruled out a similar commutation to Edward Snowden, who is currently on a political asylum in Russia.
"Mr Snowden should return to the United States and face the serious crimes that with which he's been charged. He will of course be afforded the kind of due process that's available to every American citizen who's going through the criminal justice process," White House Press Secretary Josh Earnest told reporters.
"But the crimes that he's accused of committing are serious. We believe that he should return to the United States and face them rather than seeking refuge in the arms of an adversary of the United States that has their own strategic interests in disseminating information in a harmful way," he said.
While responding to a question about Manning, Earnest said, "However, Chelsea Manning is somebody who went through the military criminal justice process, was exposed to due process, was found guilty, was sentenced for her crimes, and she acknowledged wrongdoing".
(With inputs from PTI)