Erazor Djinn

Erazor Djinn (イレイザー・ジン) is a djinn from the world of the Arabian Nights who serves as the primary antagonist in Sonic and the Secret Rings. By releasing the stories from the Arabian Nights storybook and absorbing their power, Erazor's goal is to take over his world and bend it to his will, and then make his way into Sonic's world. Erazor is the Genie of the Lamp from the tale of Aladdin and the Magic Lamp.

History
In his story, he was punished for misdeeds, and was to remain in his lamp until he had granted the wishes of 1,000 people. When he had fulfilled his sentence, he had a hatred for people and the creator of the story. He began to take over the Arabian Nights, twisting the words that supported the stories into spirits that followed his command. The djinn attempts to absorb the pages of the book, so he can control the entire world of Arabian Nights, as well as make his way into Sonic's world.

When Erazor first met Sonic, he quickly tried to kill him. After that, he asked Shahra if she had the seven World Rings (not paying much attention to Sonic), and finding she doesn't he shoots a flame at her as "punishment." Sonic jumps in front of the flame, takes the hit, and Erazor, taking advantage of the situation, tells Sonic to gather the rings for him before the flame goes out, or his "life is forfeit", before departing. He meets Sonic and Shahra again later when he's summoning the Ifrit, saying that he decided to let the Ifrit burn the remaining pages in the book. Erazor then asks Sonic if he has the Seven World Rings, and Sonic complains about Erazor calling him a rat. Erazor, figuring that Sonic doesn't have the rings, tells Sonic that he'd "better hurry it up" and leaves.

When Sonic and Shahra break into Erazor's Night Palace they meet him again. When Erazor asks if Sonic has the rings and Sonic says that he should look for them himself, Erazor responds "I'll carve you to pieces until I find every last one of them" assuming (correctly) that Sonic has the rings. Sonic beats Erazor and forces him back. When Erazor sees that Sonic has the rings, he plays on Shahra's feelings for him (or that she used to have for him), and gets the rings. Erazor then attempts to sacrifice Sonic to obtain the rings and open the gateway between his world and Sonic's world, but Shahra gets in the way of his attack to save Sonic and dies in Sonic's arms, asking for his forgiveness. Nonetheless, Erazor's ritual is successful, and he is empowered by the rings. However, without Sonic as the proper offering, Erazor doesn't obtain complete control over the rings and mutates into Alf-Layla-wa-Layla, a hideous, 6-armed, incomplete cyclops monster. Fortunately, some of the World Rings also trigger a transformation in Sonic, turning him into Darkspine Sonic, Sonic then battles Alf-Layla-wa-Layla in a dark world which lies in between the two world. Sonic manages to defeat Alf-Layla-wa-Layla, and Erazor turns back to his normal self.

Erazor survives the fight, and mocks Sonic, saying that he's immortal and will always come back after defeat. Sonic, however, reveals that he has Erazor's lamp (given to him by Shahra and reverted to its normal form when she died), and states "The genie of the lamp is supposed to grant three wishes, am I right?" Despite Erazor's refusal to ever grant a wish for Sonic, he is helpless against the power of his lamp and forced to do so. Sonic wishes for Erazor to resurrect Shahra, restore the works of the Arabian Nights, and seal himself into his lamp until the end of time. After granting the wishes, Erazor begs for Shahra to help him, but she refuses, leaving him to be sucked into his lamp. At the end, Sonic drops the lamp into the Foundry where he fought the Ifrit, either destroying it or keeping anybody from ever finding it.

Super Smash Bros. Brawl
Erazor Djinn appears in Super Smash Bros. Brawl as a collectible sticker.

Personality
Like most villains in Sonic's gallery of rouges, Erazor is depicted as a power-mad despot who seeks to rule both the world of Arabian Nights and Sonic's world. To that end, he is willing to put anything he pleases on the line and kill anyone who gets in his way. In the past, he seemed to have known Shahra and had a good relationship, but it seemed he put this behind him as seen when he nearly kills her and did not seemed concerned about her well being, calling her weak.

Powers and abilities
Erazor has access to many magical skills of incredible power. King Solomon even claimed that his power was nearly godlike. His most notable ability is the "Flame of Judgment" curse, which when the flame goes out, the person who is cursed dies, even if it is another immortal being. He has the ability to summon spirits and other various monsters from whatever confinements they may have. He can also fly and teleport. He is also a very capable swordsman, able to create lines of fire when he swings his sword and is easily capable of holding his own in a fight with Sonic, but they did not give him the power to defeat Sonic, though.

As a Genie, Erazor is a immortal being and can therefore survive any kind of physical punishment, which allows him to return from any defeat and keep fighting. He is also able to grant the wishes of others, since he is the genie of the lamp, but would never willingly do that, if it wasn't for the magic lamp, which forces him to do it anyway.

Sonic the Hedgehog
Ever since Sonic found out that Erazor Djinn has been erasing the pages of the Arabian Nights, Sonic has been after him, trying to stop him from doing such a deed. Erazor Djinn does not like Sonic at all. When he first encountered Sonic, he called him a "rat", Sonic was not pleased by this and corrects him that he is a "hedgehog"; however, throughout the game Erazor calls Sonic a rat, and Sonic, disturbed, corrects him ("Enough with that rat stuff already! Seriously! I'm a hedgehog! HEDGE-HOG!"). Erazor Djinn accidentally had given a curse to Sonic in their first encounter, lighting a flame on his chest. Erazor Djinn tells him that if the flame goes out, Sonic's "life is forfeit." Sonic, obviously not wanting to die, asks Erazor Djinn to remove it; Erazor Djinn tells him that if he collects all of the 7 World Rings, he will remove the curse. But, when Sonic handed him over the rings, Erazor Djinn had betrayed him, leaving Sonic to die. However, Sonic was able to use the World Rings and defeat Erazor Djinn. Using Erazor's lamp, Sonic wishes for Erazor to bring Shahra back to life, restore the storybook, and spend eternity trapped in his lamp, all of which Erazor has no choice but to do.

Shahra the Ring Genie
It is unknown about the relationship between Shahra and Erazor, but they seem to have known each other for a long time. Erazor forces Shahra to help him, but when she disobeyed, he curses her, but then that curse went to Sonic. He also ask her kindly, "Shahra, please, let us rule the world together." and in the end of the game, when Sonic was going to put him stuck in his lamp forever, Erazor Djinn begs Shahra for help. These might mean that Erazor and Shahra somehow might have been friends or lovers.

Memorable Quotes

 * "You must be that blue rat that just got added to the story." Erazor's first encounter with Sonic.
 * "I am the one who shall carve up the book as I see fit." Erazor's answer when Sonic asks him who he is.
 * "I'll carve you to pieces until I find every last one!" Erazor's response when Sonic refuses to give him the World Rings.
 * "Shahra, please, let us rule the world together." Erazor attempting to convince Shahra to join him.
 * "Shahra, I know you're there! Please, stop him! We can start over, the two of us! I swear! I swear it! The world is mine! I cannot be denied by that filthy rat! Whyyyyy?!" Erazor's final words before being sealed in the lamp.

Trivia

 * In one cutscene of Sonic and the Secret Rings, when Erazor Djinn was summoning Ifrit by using a spell or some sayings, he said the word "Jahannam", "Jahannam" is an arabic word meaning "Hell".
 * He also drops the name Iblis: the fire spirit from Sonic 06. (In Islam, this is another name for Satan.)
 * "Djinn" is an Arabic word for "Genie".
 * Erazor's name is pun of eraser, since he's erasing the Arabian Nights, and razor, as he attacks with a razor based weapon (this is confirmed in the developer's notes in the 'special book' section of the game).
 * Erazor and Shahra might have been good friends or even lovers, but it was never exactly stated in the game, though there were hints throughout the story.
 * Throughout the story, he incorrectly refers to Sonic as a rat, to which Sonic tries to correct him in regards to what his true species is. The only time he ever correctly identified Sonic by his correct species is just before he attempted to sacrifice him.
 * Erazor Djinn is one of the few villains to survive a super form battle (Chaos and Gemerl also have this trait), however Darkspine Sonic is weaker than Super Sonic and he also stated that he is immortal. These two factors imply that he is one of the strongest villains in the series.
 * Erazor Djinn is left handed; throughout Sonic and the Secret Rings he brands his sword in his left hand.