Video: Statement outside court by Mohammed Atif Siddique's lawyer.
A student who was jailed for eight years in 2007 and branded a "wannabe suicide bomber" has been released from jail after his conviction was overturned on appeal.
Members of Mohammed Atif Siddique's family wept and hugged each other outside court, moments after Lord Osborne said judges would quash the main conviction on charge one.
Mr Siddique's convictions on two lesser terrorism charges were not affected by the Appeal Court judgment and he has served his sentence for them.
To applause outside the High Court in Edinburgh, Mr Siddique's lawyer Aamer Anwar read a statement on behalf of his client.
He said: "At the end of Atif's trial, I stated on his behalf that the verdict was a tragedy for justice and freedom of speech. After nearly four years of struggle, the highest court in the land has ruled a miscarriage of justice took place and has given a young man his freedom back.
"Mr Siddique states our laws should bring to account those who plan acts of terror, and not criminalise young Muslims for thought crime and the possession of propaganda.
"I have always maintained my innocence, but they took my liberty, destroyed my family's reputation and labelled me a terrorist but I never had any bombs or plans to hurt anyone.
"In court it was said I was a wannabe suicide bomber, but I have always said I was simply looking for answers on the internet."
Watch video of the statement outside court >
Mr Anwar later added: "Clearly the family is extremely relieved that they have got their son back after nearly four years of struggle, so I think they need time to adjust back to that."
Appeal Court judges in Edinburgh said in January that Mohammed Atif Siddique, 24,from Alva in Clackmannanshire, had suffered a miscarriage of justice and quashed his conviction.
The Crown had been given time to decide whether it was to seek a fresh prosecution. It was confirmed that it did not wish to pursue the matter, leaving Mr Siddique free to leave custody.
In a statement, the Crown Office said: "After careful consideration of the Appeal Court's judgment, the Crown has decided not to seek authority for a retrial. The fact that Mr Siddique has already served the majority of his sentence for charge 1, and has de facto served his sentence in full for the other terrorist offences, of which he remains convicted, means that a retrial would have little practical effect.
"Accordingly, the Crown has concluded that a retrial would not be in the public interest.
It added: "Mohammed Siddique remains convicted of serious terrorist offences."
Three judges concluded that Lord Carloway, the judge in Mr Siddique’s original trial had misdirected the jury.
Throughout the case, Mr Siddique has protested his innocence, claiming that when he downloaded material from the internet he was motivated only by curiosity. He denied he was planning any terrorist attack.
Watch video: Mohammed Atif Siddique sentenced to eight years >
Mr Siddique was found guilty of three charges under the Terrorism Acts and of a breach of the peace following a four week trial at the High Court in Glasgow.
At the time of the conviction, Home Secretary Jacqui Smith said: "The successful conviction of the individual today in Glasgow is a reminder that the threat we face from terrorism is real and not isolated to any particular region."
On January 29 2010 Lord Osborne, sitting with Lords Reed and Clarke, ruled that the conviction was a miscarriage of justice.
Lord Osborne said that the directions given by Lord Carloway during Mr Siddique's trial in summer 2007 amounted to "material misdirection" in relation to the main charge that Siddique was facing.
























