American astronaut Tony Nelson splashes down near a deserted island and finds a bottle that contains a beautiful genie named Jeannie. After helping him get rescued he sets her free, but she prefers to come home with him. Besides she is very much in love with her handsome master and she will grant his every wish or desire no matter how much trouble he gets in.
Tony has a lot of work and doesn't have time for Jeannie. However, it is the day of Ramdah when masters must journey to Mecca to recite the ancient words or their genie will lose her powers and disappear.
Tired of Jeannie using her magic around the house he asks Jeannie to promise to not use her magic for him again. Next thing he knows is that he is captured by Red Chinese spies and all Jeannie can do is watch.
When Tony has to escort a princess around, Jeannie announces that due to a family feud she has to kill her. To save the princess Tony sends Jeannie around the world with tasks so massive that she will miss the three days of her visit.