Eternal Sunshine of the Spotless Mind is a 2004 American science fiction romantic drama film directed by Michel Gondry and written by Charlie Kaufman from a story by Gondry, Kaufman, and Pierre Bismuth. Starring Jim Carrey and Kate Winslet, with supporting roles from Kirsten Dunst, Mark Ruffalo, Elijah Wood and Tom Wilkinson, the film follows two individuals who undergo a memory erasure procedure to forget each other after the dissolution of their romantic relationship. The title of the film is a quotation from the 1717 poem Eloisa to Abelard by Alexander Pope. It uses elements of psychological drama and science fiction and a nonlinear narrative to explore the nature of memory and love.
Description from Wikipedia