Sometime before Puss (Antonio Banderas) meets Shrek and Donkey in Shrek 2, he
arrives at a town while escaping a bounty hunter. There he learns that the
outlaw couple Jack (Billy Bob Thornton) and Jill (Amy Sedaris) have the magic
beans he's been looking for most of his life, beans that can lead him to a
giant's castle holding valuable golden goose eggs.
When Puss tries to steal them from the outlaws' room, a masked cat (Salma
Hayek) interrupts. Both fail and escape, He learns that the masked cat is Kitty
Softpaws, and is shocked to learn that she is a girl. She is allied with Humpty
Alexander Dumpty (Zach Galifianakis), a talking egg and Puss' long-estranged
childhood friend from the orphanage where he was raised. Humpty attempts to
convince Puss to join them in finding the beans and retrieving the
golden eggs.