Fahim Ahmad, who pleaded guilty in May to participating in a terrorist group and importing weapons, got less than the 18 years to life the prosecution wanted but more than the 12 years the defense requested, the Canadian Broadcasting Corp. reported.
Judge Fletcher Dawson ruled that even though Ahmad, 26, tried to organize an al-Qaida-type cell, the so-called Toronto 18, he never got close to staging an attack.
Previous court proceedings heard that Ahmad organized two training camps in Ontario where he was recruiting people to attack targets in Toronto and Ottawa, including Parliament.
Recordings were played in court in which he can be heard urging his recruits to "cut off some heads" and "kill everybody" during their attack on Parliament.
Ahmad, in custody since 2006, will be given double credit for that time and could be eligible for parole in three and a half years.
Thirteen adults and four youths were charged in the plot. Eight have admitted guilt.
2014: The Year in Music [PHOTOS]