Jordan Peterson has lashed out at a university which rescinded its invitation to him to teach there.

Cambridge University uninvited the controversial Canadian in March after outrage from staff and students over his views on gender, race and religion.

The final straw appears to have been a photograph he featured in, posing with a man wearing a T-shirt reading 'I'm a proud Islamophobe'. The photo was taken in Auckland before the Christchurch attacks, in which 50 worshippers lost their lives at two of the city's mosques.

Peterson says he found out via Twitter.

"It was unprofessional in a way that is almost incomprehensible to me," he's now told the Sunday Times. "I can't believe how it was handled."

He blamed the university's "continual, quasi-Marxist assault" on the "foundational ideas of our culture".

The University of Toronto psychology professor was meant to spend two months at Cambridge, giving lectures on the Bible.

In the interview, Peterson also lashed out at Twitter, calling it a "dangerous platform, unsuited to human psychology", and criticised people being "witch-hunted" out of their jobs.

"It's not surprising, this kind of thing happens all the time now. People make mistakes, they're taken out of context. If the rule is going to be that if you have ever said anything that could be interpreted as offensive by the minority, no matter how small - I don't mean ethnic, I mean minority of people - you are no longer fit for public office or public discussion or anything of significance, then how the hell are you going to escape that?"

Peterson visited New Zealand in February. He is still on Twitter - his latest posts covering topics as varied as parenting, history and the "complex and unexpected sources of human misery".

Newshub.