Lionsgate has won rights to sci-fi action-thriller “The Breach,” with “Batman” writer David Goyer attached to direct.

Lorenzo di Bonaventura is producing. Nellie Stevens-Reed of Phantom 4, Goyer’s production banner, will co-produce.

Justin Rhodes will pen the adaptation of the Patrick Lee book, in which an ex-cop races to prevent an artifact from bringing about an apocalypse.

Variety reported in November that Goyer and di Bonavtura (whose “Transformers” franchise has taken in more than $2.5 billion in worldwide grosses) had started developing the project.

Goyer’s writing credits include “The Dark Knight Rises,” “Man of Steel” and Legendary’s “Godzilla” remake. He also wrote Activision’s “Call of Duty: Black Ops II” vidgame.

“Breach” is the first of a three-novel series, followed by “Ghost Country” and “Deep Sky.”

THR.com first reported that Lionsgate had won the rights.