To reach the ultimate showdown, you first need to complete both the Dark and Hero storylines. Once you've finished each, a new option called Last Story becomes available in Story Mode.
From there, play through the Last Stage and take down the Biolizard. As the battle concludes, Sonic and Shadow transform into their Super forms, setting the stage for the true final encounter: the Final Hazard.