"As for the character of Constantine, we knew that an alienated, chain-smoking, bisexual, world-weary demonologist would feel right at home among our Legends," EP Phil Klemmer tells THR.

Constantine is getting resurrected again on The CW.

Matt Ryan will reprise his role of demon hunter John Constantine for a two-episode arc on Legends of Tomorrow this season.

"Having Matt Ryan reprise his iconic — dare we say legendary — role of John Constantine on Legends is something that [executive producer] Marc [Guggenheim] and I have been working toward since season one, and now the stars have finally aligned," executive producer Phil Klemmer tells The Hollywood Reporter. "While we are working to finish our 2017 Arrow-verse crossover, which is no joke the most ambitious bit of network TV that four shows have ever had the audacity and insanity to endeavor, we were looking for a way to make an equally exciting 2018 return. That's how we came up with Matt Ryan."

Ryan played the iconic DC Comics character for one season on NBC's since-canceled live-action Constantine and later appeared in season four of Arrow. He will appear in episodes nine and 10 of Legends of Tomorrow season three, which will take place chronologically after his appearance on Arrow. And to hear Klemmer tell it, his appearance is sure to shake things up on the Greg Berlanti-produced comic book series.

"As for the character of Constantine, we knew that an alienated, chain-smoking, bisexual, world-weary demonologist would feel right at home among our Legends," says Klemmer. "His appearance in episode 310 will involve the following: a revisiting of Arrow season four and the events following that season's finale episode; a confrontation with this season's Big Bad on Legends — the name we've only heard whispered until now, Mallus; some hot sex — something that has been in short supply on the Waverider thus far in season three; and Damien Darhk [Neil McDonough], because how can you do an episode about dark magic and not have Damien Darhk? More than anything, the episode promises to be scary as you know what — tonally it's The Exorcist meets One Flew Over the Cuckoo's Nest. Demonic possession in a mental institution — what's not to love?"

Ryan also will lend his voice to the CW Seed animated series Constantine, debuting on the digital platform in early 2018, which is around when his Legends of Tomorrow two-part arc will air. So fans still lamenting Constantine's early cancellation in 2015 will have a lot to celebrate in the new year.

Legends of Tomorrow season three premieres Tuesday, Oct. 10, at 9 p.m. on The CW.