As the film opens, a pirate named Burger Beard travels to Bikini Atoll, where he obtains a magical book that has the power to make any text written upon it real. The book tells the story of SpongeBob SquarePants and his adventures in the underwater city of Bikini Bottom. SpongeBob works for Mr. Krabs at the Krusty Krab fast food restaurant, where he cooks Krabby Patties. SpongeBob has spent several years protecting the secret formula of the Krabby Patty from Plankton, the owner of the Chum Bucket eatery.