England captain Eoin Morgan's fine century laid the platform for a 72-run win over South Africa in the day/night first one-day international at Headingley on Thursday.
Victory over the Proteas, the world's number-one ranked ODI side, gave England a morale boost just a week before they host the Champions Trophy tournament featuring the world's top eight 50-over sides and put them 1-0 up in this three-match series.
South Africa, set 340 to win, made steady progress while the experienced Hashim Amla and Faf du Plessis shared a second-wicket stand of 112.
But they both fell in quick succession to leave the Proteas 149 for three.
South Africa's innings never recovered and they were dismissed for 267 with five overs to spare.
Earlier, Morgan's 107 -- his 10th ODI hundred for England -- was the cornerstone of the hosts' 339 for six.
England had slumped to 198 for five but Morgan's sixth-wicket stand of 117 with fellow left-hander Moeen Ali, who made a dashing 77 not out on his return, turned the tide.
Both batsmen struck five sixes apiece.
Ali, omitted from the preceding 2-0 series win over Morgan's native Ireland, ended the innings in style when he hoisted the last ball, from Chris Morris, high over deep square leg.
Ali was named man-of-the-match after also taking two wickets with his off-spin.
South Africa skipper AB De Villiers opted to field first after winning the toss despite sunny blue skies above Headingley seemingly offering good batting conditions.
His decision was quickly rewarded when Jason Roy (one) was caught behind off left-armer Wayne Parnell in just the second over.
Both Alex Hales and England Test skipper Joe Root made runs on an easy-paced pitch before they each fell to Andile Phehlukwayo.
The 21-year-old seamer struck with his first ball Wednesday when Hales, on 61, flat-footedly chased a wide ball and got a thin edge to wicket-keeper Quinton de Kock.
Phehlukwayo then undid Root (37) with a bouncer the local hero mishooked to Amla.
But Morgan twice lofted Phehlukwayo for six.
Ben Stokes, back from impressing in the Indian Premier League, holed out for 30 and fellow IPL star Jos Buttler, replacing in-form Yorkshireman Jonny Bairstow, glanced to short fine leg on seven.
Morgan, however, went to his hundred when he hooked fast bowler Kagiso Rabada over long leg for six.
He holed out off Morris soon afterwards to end a 93-ball innings but Ali kept going as England plundered 102 runs in the last 10 overs.
England then had an early breakthrough when dangerman de Kock fell for just five after skying Chris Woakes to opposing keeper Buttler.
But Amla again proved a thorn in England's side with a typically elegant near run-a-ball 73.
Fast bowler Mark Wood, however, removed the stylish South African when he had Amla lbw but only after England successfully reviewed Australian umpire Rod Tucker's not out call.
There was rather less doubt when du Plessis was caught behind off Yorkshire fast bowler Liam Plunkett.
De Villiers looked good while making 45 off 38 balls, including seven fours, but with his side falling behind the run-rate, he fell in similar fashion to several team-mate when he holed out off Ali.
His exit left South Africa 225 for seven and the contest ended when tailender Rabada was caught behind off Woakes, who took four for 38.
Before the match started, players and officials were joined by spectators in observing a minute's silence in memory of the victims of Monday's terror attack in nearby Manchester that killed 22 people and injured dozens more.
The series continues at Southampton on Saturday and concludes with next Monday's match at Lord's.