LOS ANGELES (AP) — Johnny Depp is about to enter a world of magic. The actor is set to be part of “Harry Potter” author J.K. Rowling’s “Fantastic Beasts and Where to Find Them” in a secretive role according to a Warner Bros. representative Tuesday.

FILE – In this May 23, 2016 file photo, Johnny Depp arrives at the premiere of “Alice Through the Looking Glass” at the El Capitan Theatre, in Los Angeles. (Photo by Richard Shotwell/Invision/AP, File)

Depp will appear in a cameo in the first film, which opens on Nov. 18, and have a bigger role alongside star Eddie Redmayne in the sequel in 2018.

“Fantastic Beasts and Where to Find Them” is based on Rowling’s book of the same name and set 60 years earlier than Harry Potter in 1926 New York. There are five films planned in the Warner Bros. franchise.

Depp is no stranger to franchises, having led both the live-action “Alice” films and “The Pirates of the Caribbean,” both for Disney.

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.