David Mamet is turning to the Good Book, setting a deal with Fox, Lionsgate TV and 20th Century Fox TV to develop a seven-hour limited series rooted in the concepts behind the seven deadly sins.

Stephen McPherson is shepherding the project with Mamet (pictured) through McPherson’s production pact with Lionsgate TV.

The famed playwright and screenwriter plans to write and direct the first episode, and write at least two more segs.

The themes invoked by the seven deadly sins will serve as a backdrop of a series of interconnected stories the reflect on the human condition through Mamet’s distinctive lens. And there’s plenty of material to work with from the list of Christianity’s Big 7 no-nos: wrath,  greed, sloth, pride, lust, envy and gluttony.

The “7 Deadly Sins” project is in the early development stage as part of Fox’s push to offer more limited-run series and longform projects throughout the calendar year. Mamet and McPherson are exec producing.

Mamet’s past TV credits include the HBO telepic “Phil Spector” and the CBS military drama series “The Unit.” He’s a two-time Pulitzer Prize winner whose plays include “Glengarry Glen Ross,” “Oleanna,” “The Cryptogram” and “American Buffalo.”

McPherson, the former ABC Entertainment chief, is fielding 11 prospects so far in the current development cycle, with a multicam comedy pilot order from Fox and projects in the hopper for NBC, CBS and Starz, among others.