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."
Shrek received his own star on the Hollywood Walk of Fame.
The late Alan Rickman was the initial casting choice for the role of Lord Farquaad. However, Rickman opted to portray the role of Professor Severus Snape in Harry Potter and the Sorcerer's Stone (2001) instead. The role ultimately went to John Lithgow.