England won the toss and batted, which looked like a mistake at first after Phil Salt, Aneurin Donald, Harry Brook and Tom Banton were all gone inside five overs with just 32 runs on the board.
Jordan Cox and James Coles steadied things with a stand of 44, with Coles making 33 off 29 balls, which was followed by 23 off 14 balls from Liam Dawson before Sam Curran then took charge.
He added 37 with Dawson and an unbeaten partnership of 51 off 20 balls with Jamie Overton, finishing on 50 not out off 28 balls, with four sixes.
Overton hit 20 not out off 9, including three sixes, while Riley Meredith's last over went for 26, and England took 51 off the final 20 balls to reach 181/7.
Adam Zampa was the pick of the Australian bowlers for his control, finishing with figures of 1/27 off four overs, Nikhil Chaudhary took 1/4 from his single over, with Meredith and Spencer Johnson taking a couple of wickets apiece but struggling to control the run rate.
Australia's chase got off to an auspicious start, with Jake Fraser-McGurk falling for a duck to Henry Crocombe in the second over.
However, Marsh hit 14 off his first 6 balls and added 52 with Sam Harper before Adil Rashid ended that stand by getting Harper stumped for 18, and he finished with 1/14 off four overs.
Marsh did most of the scoring with no other Australian passing 18 runs and he kept them in the game as wickets fell around him.
He reached a hundred and took 18 off Overton's final over to leave Australia needing 12 from the last over of the match to win.
Crocombe held his nerve and had Marsh caught behind on the fourth ball, ending a magnificent innings of 119 off 57 balls, with nine fours and nine sixes.
Joel Davies was out lbw next ball, and a single off the last left Australia seven short. Crocombe took 3/28, and Cox was busy behind the stumps for England with four dismissals.