King Shahryār is the alternate doppleganger of Doctor Ivo "Eggman" Robotnik within the world of Sonic and the Secret Rings. Upon first meeting Shahryār - and noting the King's resemblance to his great nemesis - Sonic is naturally suspicious of the obese sultan and seems apprehensive in trusting him. However, as the story progresses, it becomes apparent that Shahryār really doesn't share the grandiose megalomania of his alternate self (or the other alternate self), and instead the King in fact serves as a minor ally for Sonic in his quest to thwart Erazor Djinn.
- In the real-world myth, King Shahryār was the listener to whom Šahrāzād told the 1001 stories that make up the Arabian Nights.
| Characters in the Sonic the Hedgehog game series
||Sonic (Super, Hyper, Darkspine, the Werehog, Excalibur) | Tails (Super) | Knuckles (Super, Hyper) | Amy Rose | Cream | Big | Blaze (Burning) | Emerl | Silver (Super) | Marine | Lumina Flowlight | Chip | Shahra | Knights of the Round Table | Caliburn | Yacker | Sticks | Avatar
||Shadow (Super) | Rouge | Espio | Charmy | Vector | Mighty (Super) | Ray (Super) | Chaos (Perfect) | E-102 Gamma | E-123 Omega | Bean | Bark | Jet | Wave | Storm | Shade | Merlina
||Dr. Eggman | Metal Sonic (Rocket, Neo, 3.0) | Mecha Sonic (Super) | Fang | Witchcart | Battle Kukku Army (15th, 16th, Dr. Fukurokov) | Tails Doll | Metal Knuckles | E-Series | ZERO | Void | Biolizard | G-merl | Eggman Nega | Black Doom | Shugo-hei | Iblis | Mephiles | Solaris | Erazor Djinn | Captain Whisker | Johnny | Master Core: ABIS | Ix (Super) | Dark Gaia | King Arthur | Orbot | Cubot | Deadly Six (Zavok, Zazz, Zomom, Master Zik, Zeena, Zor) | Hard Boiled Heavies | Infinite
|| Sonic/Heroes | Rose | Dark | Chaotix | Babylon
|| Gerald & Maria Robotnik | Froggy | Chao (Hero, Dark) | Omochao | Cheese | Chocola | Vanilla | Tikal | Pachacamac | E-101 Beta | Illumina | President | G.U.N. Commander | Elise | Duke of Soleanna | Coconut Crew | Vikings | Professor Pickle | Wentos | Don Fachio | Dodon Pa | Heavy and Bomb | Tiara Boobowski | Honey | Flicky | Animals | Wisps