Kareem Azaar is a ruthless thief on the planet Zaghdad who has stolen the Magic Lamp of Olam, which contains the power of an evil genie. Kareem uses the Genie's power to take over the planet and banish the Sultan into the world of the Genie's lamp. When the Super Friends arrive to do battle, Superman and the Wonder Twins wind up in the lamp as well, leaving the other heroes to take on Kareem's forces.