Stokes scored the winning four on Sunday in the afternoon session on Day 4 as England finished on 362-9 in its second innings - chasing what seemed an improbable 359 - after an unbeaten 76-run stand for the 10th wicket with Jack Leach, who scored only 1 run in the partnership.
It's the highest successful fourth-innings chase by England in a test match.
Stokes was dropped by Marcus Harris at third man off Pat Cummins and survived an easy runout chance and clear lbw decision close to the end.
The allrounder finished with 11 fours and eight sixes overall in one of the greatest innings by an England batter.