The Ifrit is a demonic fire elemental from another dimension that appears as the final boss of Sonic Rivals 2.
In Sonic Rivals 2, Eggman Nega (disguised as Dr. Eggman) discovers a book (Gerald Robotnik's journal) that explains the Ifrit's power. He intends to free it from its dimension to help him conquer the world, but is unable to open the portal unless he gets the Chaos Emeralds and Chao for the Ifrit to feed upon.
Eggman Nega hires Rouge the Bat to find the Emeralds. On the advice of Dr. Eggman, Shadow and Metal Sonic attempt to find the Chaos Emeralds first to thwart Nega's plans. At the same time, Silver the Hedgehog arrives from a dystopian future that has been destroyed by the Ifrit, and tries to prevent Eggman Nega from finding the Chao (in the process, allying with Espio the Chameleon), in the process, leaving Sonic and Tails to investigate the Chao's disappearance.
Rouge, nevertheless, manages to find six of the Emeralds (with some unwitting assistance from Knuckles the Echidna) and brings them to Eggman Nega in the Mystic Haunt Zone. The other teams also converge in this area, and witness Eggman Nega using the Emeralds to open a portal to the Ifrit's world. On the other side, Eggman Nega uses Metal Sonic 3.0 to awaken and defend the Ifrit, which manages to use some kind of mind control on Sonic and/or Tails (or Knuckles and/or Rouge, depending on which team the player is controlling), but is defeated by the other teams, and is destroyed.
Shadow and Metal Sonic manage to close the portal, sealing themselves and Eggman Nega in the Ifrit's dimension but allowing the other teams to escape. It is revealed that Metal Sonic had the seventh Chaos Emerald all along, which Shadow and Metal use to activate Chaos Control and escape back to their own world, leaving Eggman Nega trapped alone in the Ifrit's dimension.
Powers and abilities
The Ifrit holds incredible power, capable of destroying entire worlds. It can fly, unleash fiery blasts, and feeding on minuscule Chao increases it power to such levels that it becomes invincible. Described as capable of binding one's soul, the Ifrit can enslave others with powerful mind control powers.