A man portrayed as a minor player in the so-called Toronto 18 terror plot has been sentenced to time served.

Asad Ansari was found guilty — along with co-accused Steven Chand — by a jury in June of participating in a terrorist group.

Those verdicts marked the end of the mammoth Toronto 18 case.

In all, 18 people were charged with terrorism offences.

Ansari, 25, spent three years and three months in pre-trial custody before he was released on bail in August 2009.

While he faced a maximum of 10 years behind bars he was instead sentenced yesterday in a Brampton court to time served.

He remains on probation for three years.

Seven other Toronto 18 members had their charges dropped or stayed, two were found guilty at trial by judge and seven pleaded guilty.

Ansari and Chand were on trial with Fahim Ahmad, who pleaded guilty mid-trial to leading a terrorist group, instructing others to carry out activities for the benefit of a terrorist group and importing firearms for the benefit of the terrorist group.

The jury heard weeks of evidence that Ahmad was plotting to attack Parliament, electrical grids and nuclear stations and that he held training camps in order to assess the suitability of recruits for his cause.

The jury had heard that Ansari attended one of those camps in December 2005.