Ben Affleck does not star or appear in the film "The Departed".

The Departed is a 2006 American crime drama film directed by Martin Scorsese and written by William Monahan. It is a remake of the 2002 Hong Kong film Infernal Affairs. The film stars Leonardo DiCaprio, Matt Damon, Jack Nicholson, and Mark Wahlberg, with Martin Sheen, Ray Winstone, Vera Farmiga, Anthony Anderson and Alec Baldwin in supporting roles.

The film takes place in Boston. Irish Mob boss Francis "Frank" Costello (Jack Nicholson) plants Colin Sullivan (Matt Damon) as a mole within the Massachusetts State Police; the two characters are loosely based on famous gangster Whitey Bulger and corrupt FBI agent John Connolly, who grew up with Bulger. Simultaneously, the police assign undercover state trooper William "Billy" Costigan (Leonardo DiCaprio) to infiltrate Costello's crew. When both sides realize the situation, Sullivan and Costigan both attempt to discover the other's identity before their covers are blown.

More Info: en.wikipedia.org