Erazor Djinn

Erazor Djinn is a djinn who serves as the primary antagonist in Sonic and the Secret Rings. His name is a pun on the words "Eraser" and "Razor" because he is "erasing" the pages of the book and he uses a weapon that looks much like a straight-edge razor. 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 monster. Fortunately, some of the World Rings also trigger a transformation in Sonic, creating the darker and more violent Darkspine Sonic, and Erazor is defeated.

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 collectable sticker.

Sonic the Hedgehog
Ever since Sonic found out that Erazor Djinn has been erasing the contents in the story 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, with disturbance corrects him that he is a hedgehog ("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, causing 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.

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 up 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.

''"I cannot be denied by that filthy rat! WHY!?!?" ''- 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".
 * "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 bears an uncanny resemblance to Majin Buu from the Dragon Ball series.
 * 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 cause throughout Sonic and the Secret Rings he brands his sword in his left hand.