BANGKOK — A Canadian educator who has said he was wrongfully sentenced to 11 years in prison on charges of sexually abusing children at a Jakarta school has been granted clemency and returned to Canada, his family said on Friday.

Neil Bantleman, an administrator at the prestigious Jakarta Intercultural School, was convicted in 2015 along with six Indonesians on the basis of what critics contended was a flawed police investigation and preposterous evidence.

Among the evidence submitted at trial were claims that Mr. Bantleman had used magical powers to seduce the children and render the scenes of his crimes invisible.

“Five years ago I was wrongfully accused and convicted of crimes I did not commit and furthermore never occurred,” Mr. Bantleman said in a statement.