Puss in Boots is a 2011 American computer-animated action comedy film produced by DreamWorks Animation, directed by Chris Miller (who directed Shrek the Third in 2007), executive produced by Guillermo del Toro, and written by Brian Lynch, with screenplay by Tom Wheeler. It stars Antonio Banderas, Salma Hayek, Zach Galifianakis, Billy Bob Thornton and Amy Sedaris. The film was released in theaters on October 28, 2011 in Digital 3D and IMAX 3D. Although the character of Puss in Boots originated in a European fairy tale in 1697, the film is a spin-off prequel to the Shrek franchise. It follows the character Puss in Boots on his adventures before his first appearance in Shrek 2 in 2004. Accompanied by his friends, Humpty Dumpty and Kitty Softpaws, Puss is pitted against Jack and Jill, two murderous outlaws in ownership of legendary magical beans which lead to great fortune.