SpongeBob SquarePants - Season 2 Episode 22 Shanghaied Be there and be square!
Overview: When a giant anchor falls onto SpongeBob's house, Squidward, SpongeBob and Patrick decide to climb the anchor, and they find the boat of the Flying Dutchman, who imprisons them.