An Ontario man from Niagara Region who pleaded guilty to three terrorism charges has been sentenced to 20 years in prison with the possibility of parole after 10 years.