Court-Martial

Court-Martial is the 85th episode of Gilligan's Island and the 17th episode of the third season. It is notable for Gilligan's dream sequence involving pirates. It aired on January 9, 1967.

Synopsis
In this recreation of the Minnow Shipwreck, it is learned that Gilligan threw the anchor overboard without attaching it to the ship which caused the boat to wreck itself on the beach

Trivia

 * In the dream sequence: The Skipper is Long John Silver. Mr. Howell is Captain Hook. The Professor is Captain Kidd.
 * As usual, Gilligan can't do anything right. In the dream sequence, he toses his sword away by accident!