- Not to be Confused with the famous Stories book Alf-Layla-wa-Layla
Alf-Layla-wa-Layla is the final boss of Sonic and the Secret Rings. He is an incomplete, twisted, grotesque genie demon, and is the powered-up form of Erazor Djinn.
He has the ability to create lines of fire like Erazor does, but he doesn't need a weapon to do it(His razor weapon appears to become his "tail"). His other attacks include, shooting out purple balls of energy (he shoots one from each hand, and his other six hands), and creating blue whirlpools. His most powerful attack is using all of the words from Arabian Nights to create a massive purple ball, which can't be dodged. This attack is also his weakness, as Darkspine Sonic can knock back at him (that's only way to make him vulnerable to damage).
The seven World Rings and the death of Shahra triggered his transformation, and to complete it he must sacrifice Sonic, the collector of the rings. He is intent on ruling the Arabian Nights world and Sonic's. Fortunately, the excess power of the World Rings triggered a transformation in Sonic, creating Darkspine Sonic, and he is defeated.
Erazor survived the fight, and mocks Sonic saying that he's immortal and Sonic can't kill him. Sonic, however, reveals that he has Erazor's lamp (given to him by Shahra and reverted to its normal form when she died), and points out "The genie of the lamp is supposed to grant three wishes, am I right?" Despite Erazor refusing to grant a wish for Sonic, the lamp's magic forces him to do so. Sonic's wishes are to revive Shahra, reverse all of the damage that Erazor did, and that Erazor is then trapped in his lamp forever. In the ending scene, Sonic drops the lamp into the foundry where he fought the Ifrit Golem, either destroying it or keeping anybody from ever finding it.