Jude Law has been cast to play the young Albus Dumbledore in the upcoming “Fantastic Beasts” sequel, Warner Bros. announced Wednesday.

Also Read: Will Jude Law's Dumbledore Be Openly Gay in 'Fantastic Beasts' Sequel? Twitter Sure Hopes So

Law will portray Dumbledore long before he became the Headmaster at Hogwarts, when he was still serving as the wizarding school’s Transfiguration professor. J.K. Rowling previously hinted that Dumbledore will be openly gay in the sequel. “As far as his sexuality is concerned – watch this space,” she said in November.

Principal photography is set to begin this summer on the sequel directed by David Yates, who previously helmed the final four “Harry Potter” movies as well as “Fantastic Beasts and Where to Find Them.” David Heyman, J.K. Rowling, Steve Kloves and Lionel Wigram will produce, while Neil Blair, Rick Senat and Danny Cohen are serving as executive producers.

Also Read: 'Fantastic Beasts' Stuffs Suitcase With $75 Million on Box Office Debut

“As fans ourselves, we are thrilled to have Jude Law joining the ‘Fantastic Beasts’ cast, playing a character so universally adored. Jude has been a member of the Warner Bros. family for years and we’re excited to embark on this new adventure with him,” said Toby Emmerich, President and Chief Content Officer at Warner Bros.

Yates added, “Jude Law is a phenomenally talented actor whose work I have long admired, and I’m looking forward to finally having the opportunity to work with him. I know he will brilliantly capture all the unexpected facets of Albus Dumbledore as J.K. Rowling reveals this very different time in his life.”

The first film in the “Fantastic Beasts” franchise became a global blockbuster, earning more than $813 million at the box office. It starred Eddie Redmayne, Colin Farrell, Katherine Waterston and Dan Fogler.

Also Read: 'Fantastic Beasts And Where to Find Them' Is a 'Truly Magical Experience' and 8 Other Enchanted Reviews

The next installment, also written by Rowling, will star Waterston, Redmayne, Fogler, Ezra Miller, Zoe Kravitz and Johnny Depp.

The sequel is slated for release on November 16, 2018 — the second of five planned “Fantastic Beasts” movies.

Law will next be seen in “King Arthur: Legend of the Sword” and currently stars in the HBO series “The Young Pope.” His other credits include the “Sherlock Holmes” movies, “The Grand Budapest Hotel,” “Hugo,” “The Aviator,” and “Alfie.”

He is represented by WME, Julian Belfrage Associates and Premier PR.