Air Force Captain (later promoted to Major) Anthony Nelson lived an exciting life in Cocoa Beach, Florida, on detached service to NASA as on of its most promising astronauts. But a malfunction during a space launch maroons him on a deserted island in the South Pacific, and now his life will never be the same. After he unwittingly releases a beautiful genie from a mysterious, ancient bottle he finds on the island, Tony is granted his first wish: to go home. but he'll also get something he didn't wish for: his beautiful genie is coming home with him.

Larry Hagman brought a high energy and impeccable comic timing to his role as Tony Nelson, an astronaut attempting to remain down to earth despite his newly disrupted personal life. His comical reactions to the unrealistic situations played a key role in the success of this beloved sitcom.