Thieves on an Arabian-like planet have stolen a magic lamp and accidentally drop it on Earth. The Wonder Twins find it and they end up getting captured as well as the Hall of Justice being demolished. The other Superfriends successfuly stop the thieves and the controlled genie from ruling the planet and save the Wonder Twins.