40 Days and 40 Nights is a 2002 satirical erotic romantic comedy film directed by Michael Lehmann, written by Rob Perez and starring Josh Hartnett, Shannyn Sossamon and Paulo Costanzo. The film depicts Matt Sullivan, a San Francisco web designer who has chosen to abstain from any sexual contact for the duration of Lent.