The Departed is a 2006 American crime thriller film directed by Martin Scorsese and written by William Monahan. It is a remake of the 2002 Hong Kong film Infernal Affairs and draws inspiration from the Boston Winter Hill Gang. The movie focuses on the intertwined lives of an undercover cop infiltrating the Irish Mafia and a career criminal on the rise within the police force.