Was Shrek 2 the inspiration for any later films ?
The " Shrek " franchise from DreamWorks Animation , based on William Steig 's picture book with the same name , consists of four computer - animated films including : " Shrek " ( 2001 ) , " Shrek 2 " ( 2004 ) , " Shrek the Third " ( 2007 ) , and " Shrek Forever After " ( 2010 ) .