In Sonic Heroes, Metal Sonic is the hidden antagonist who disguises himself as Dr. Eggman and later transforms into Metal Madness and Metal Overlord. Players unlock the final battle by completing all team stories and gathering the Chaos Emeralds.