Once you've collected all the Chaos Emeralds and beaten all four stories in Sonic Heroes, you unlock a special "Last Story." That bonus chapter pits you against the true final boss.
Spoiler alert: it turns out to be Metal Sonic, giving the adventure one last, memorable showdown.