Shrek 2 is a 2004 American animated fantasy comedy film loosely based on the 1990 children's picture book Shrek! by William Steig. Directed by Andrew Adamson, Kelly Asbury, and Conrad Vernon from a screenplay by Adamson, Joe Stillman, and the writing team of J. David Stem and David N. Weiss, it is the sequel to Shrek (2001) and the second installment in the Shrek film series. The film stars Mike Myers, Eddie Murphy, and Cameron Diaz, who reprise their respective voice roles of Shrek, Donkey, and Princess Fiona. They are joined by new characters voiced by Antonio Banderas, Julie Andrews, John Cleese, Rupert Everett, and Jennifer Saunders. Shrek 2 takes place following the events of the first film, with Shrek and Donkey meeting Fiona's parents as the zealous Fairy Godmother, who wants Fiona to marry her son Prince Charming, plots to destroy Shrek and Fiona's marriage. Shrek and Donkey team up with a sword-wielding cat named Puss in Boots to foil her plans.
Development began in 2001, and following disagreements with producers, the first film's screenwriters Ted Elliott and Terry Rossio were replaced with Adamson. The story was inspired by Guess Who's Coming to Dinner (1967), and new animation tools were utilized to improve the visual appearance of each character, particularly Puss in Boots. The lead actors also received a significant bump in salary to $10 million, which at the time was among the highest contracts in their respective careers. Like its predecessor, Shrek 2 also parodies other films based on fairy tales and features references to American popular culture. The film is dedicated to the memory of Shrek creator William Steig, who died on October 3, 2003, eight months before the film was released.