Horror specialist Rob Zombie will direct and produce a biopic about the final years of iconic comedian Groucho Marx’s life along with Cold Iron Pictures’ Miranda Bailey, Amanda Marshall and Andy Gould.

The project is based on Steve Stoliar’s 1996 book “Raised Eyebrows: My Years Inside Groucho’s House,” written about Stoliar’s three years as Marx’s personal secretary at the actor’s Beverly Hills home before Marx died in 1977. Stoliar spent time with Marx, Mae West, George Burns, Bob Hope, Jack Lemmon, S.J. Perelman and Steve Allen along with dealing with Erin Fleming — the mercurial woman in charge of Marx’s life.

Marx made 13 movies with his brothers and was a major star on radio and TV with the quiz show “You Bet Your Life.”

Oren Moverman, whose credits include “Love and Mercy” and “The Messenger,” will write the screenplay.

Zombie’s directing credits include “House of 1000 Corpses,” two “Halloween” films, “The Devil’s Rejects” and “The Lords of Salem.”

Bailey’s Cold Iron Pictures produced “The Diary Of A Teenage Girl” and worked with Moverman on “Time Out Of Mind” and “Oppenheimer Strategies.”

ICM Partners is handling sales for the film. Moverman is repped by WME and Zombie is repped by UTA, Spectacle Entertainment and attorney David Fox.

The news was first reported by Deadline.com.