Shrek the Third (also known as Shrek 3) is a 2007 American computer-animated fantasy comedy film loosely based on the 1990 picture book Shrek! by William Steig. Directed by Chris Miller (in his feature-length directorial debut) and co-directed by Raman Hui, it is the third installment in the Shrek film series and the sequel to Shrek 2 (2004). The film stars Mike Myers, Eddie Murphy, Cameron Diaz, Antonio Banderas, Rupert Everett, Julie Andrews, and John Cleese reprising their voice roles from the previous films, along with new additions such as Justin Timberlake as Arthur Pendragon and Eric Idle as Merlin. In the plot, Prince Charming is plotting to overthrow Shrek and Fiona, who have inherited the throne following King Harold's death. Shrek, who does not want to rule the kingdom and does not believe an ogre is fit to be king, attempts to convince Fiona's underachieving, 16-year-old cousin Artie to reign instead.
Shrek the Third premiered at the Mann Village Theatre, Westwood in Los Angeles on May 6, 2007, and was theatrically released in the United States by Paramount Pictures on May 18, 2007, exactly six years after the first film was released. The film received mixed reviews but was a commercial success, grossing $813 million worldwide on a budget of $160 million, becoming the fourth highest-grossing film of 2007. It was nominated for the Best Animated Film at the 61st British Academy Film Awards. Shrek the Third was the final film in the Shrek franchise to be co-produced by Pacific Data Images, which folded in 2015. The sequel, Shrek Forever After, was released in May 2010.