Tea Leoni will star alongside Ricky Gervais and Greg Kinnear in writer-director David Koepp’s “Ghost Town” for DreamWorks and Spyglass Entertainment.

Gavin Palone is producing the romantic comedy, set to begin production this October in Gotham. Par will distribute worldwide.

Story revolves around a misanthropic dentist (Gervais) who dies for seven minutes during a colonoscopy. Recovering, he can see the dead and is bothered by the ghost of a businessman (Kinnear) who wants the dentist to break up the impending marriage of the ghost’s wife, played by Leoni.

Leoni is in theaters June 22 with John Dahl’s dark dramedy “You Kill Me,” starring alongside Ben Kingsley and Luke Wilson. Previous credits include “Fun With Dick and Jane,” “Deep Impact” and “Hollywood Ending.” The latter two were distribbed by DreamWorks.