Ben Affleck and Matt Damon agreed to do the film because they owed the director a favor. It was writer and director Kevin Smith who brought the script of Good Will Hunting (1997) to the attention of Miramax.