Colorado pastor Kevin Swanson said Saturday that America needs to repent for Harry Potter's “homosexual mentor” to avoid God's judgment.

Swanson made his remarks in closing his National Religious Liberties Conference, which took place in Iowa.

He warned that “we are on the very cusp of judgment as I see it and we need to call America to repent.”

“America, repent of your rebellion against God!” Swanson yelled. “America, repent of stumbling the little ones! America, repent of Harry Potter! America, repent of How to Train Your Dragon!”

“America, repent that Dumbledore emerged as a homosexual mentor for Harry Potter, that Hiccup’s mentor in How to Train Your Dragon emerged as a homosexual himself in order that history might repeat itself one more time, in order that little six – and seven – and eight-year-olds might stumble. In order that tens of millions of parents, it would be better that a millstone be hanged around their neck and they be drowned at the bottom of the sea than that there would be so many people stumbling so many children in public schools, in movie theaters, in homes in which children are raised to be stumbled by the Dumbledores and by the mentors of Hiccup in How to Train Your Dragon!” he added.

On Friday, Republican presidential candidates Texas Senator Ted Cruz, Mike Huckabee and Louisiana Governor Bobby Jindal addressed the crowd.

(Related: Mike Huckabee vows to ignore gay marriage ruling as president.)