Danny Devito as Dr. Eggman