The principal actors never met each other. They all read their parts separately, with a reader feeding them the lines. John Lithgow later admitted that, while he enjoyed playing Lord Farquaad, he was a little disappointed that he never actually worked directly with Mike Myers, Cameron Diaz, or Eddie Murphy.
Chris Farley was originally cast as Shrek and even recorded almost all of the dialogue. However, after his death, the role was given to fellow Saturday Night Live (1975) performer Mike Myers. Shrek's "air quotes" in the film is an homage to Farley, whose character Bennett Brauer also used air quotes. A story reel featuring a sample of Farley's recorded dialogue was leaked to the public in August 2015.
The song "All Star" by Smash Mouth, heard in the opening credits, was only a placeholder for test screenings until a new song could be found. But test audiences loved it, and the producers kept it in. When the producers decided to keep "All Star" they decided to let the band perform the last song in the movie, "I'm a Believer."
Mike Myers was hesitant about succeeding the role of Shrek from Chris Farley, due to them being friends and believing it was disrespectful to do so. But after thinking it over and the producers all telling Myers: "Can't we just settle this over a pint?", he decided to take on the role. And that line was eventually used in the final cut of the film
Shrek received his own star on the Hollywood Walk of Fame.