A six-part adaptation of Neil Gaiman and Terry Pratchett’s novel “Good Omens” will debut in 2018, Amazon Studios announced Thursday.

Gaiman adapted all six episodes of the series and will also serve as showrunner.

The show is set in 2018 on the brink of an apocalypse as humanity prepares for a final judgment. But follies ensue — Aziraphale, a somewhat fussy angel, and Crowley, a demon aren’t enthusiastic about the end of the world, and can’t seem to find the Antichrist.

“Almost 30 years ago, Terry Pratchett and I wrote the funniest novel we could about the end of the world, populated with angels and demons…” Gaiman said. “Three decades later, it’s going to make it to the screen. I can’t think of anyone we’d rather make it with than BBC Studios, and I just wish Sir Terry were alive to see it.”

“Good Omens” was Gaiman’s first novel, written in collaboration with Pratchett, who died in 2015. “Good Omens” has long been the subject of possible adaptations, with Terry Gilliam at one point due to direct a feature version. The show is co-produced by BBC Studios with Narrativia, the production company of Pratchett’s daughter Rhianna, and the Blank Corporation and in association with BBC Worldwide for Amazon Prime Video and the BBC.

Exec producers on the series are Gaiman, Caroline Skinner, and Chris Sussman for BBC Studios, and Rob Wilkins and Rod Brown for Narrativia. Following its exclusive launch on Amazon Prime Video, the series will also be broadcast on BBC in the U.K. First-run rights for markets where Prime Video doesn’t operate will be distributed by BBC Worldwide, which will also handle second-run rights internationally.

BBC Studios is the BBC’s main television production arm and is set to launch as a wholly owned subsidiary of the broadcaster this year, with the added ability to produce programs for commercial broadcasters.

“This is a fantastic achievement that comes as we begin to grow our global customer base, and it demonstrates there is considerable appetite for BBC Studios to make programs for other broadcasters once we launch as a commercial player,” said Mark Linsey, Director of BBC Studios. “I’m delighted that this major production is with a writer of Neil Gaiman’s stature and we look forward to developing more exciting, innovative projects like this in future.”