Day four: England 319 & 284-6 beat New Zealand 384 & 218 by four wickets
England secured a 3-0 series win over New Zealand with a thrilling four-wicket victory in the final Test.
Giles enjoyed his best Test figures on home soil
Graham Thorpe hit his 14th Test century to end on 104 not out and guide England to glory in overtime against a severely-depleted Kiwi attack.
Chris Cairns, playing in his final Test match for New Zealand, took match figures of 9-187 on his former county ground Trent Bridge.
England had been set 284 to win after New Zealand had been dismissed for 218.
It was England's second highest successful run-chase at home, after they scored 315-4 to beat Australia at Headingley in 2001.
The result also sealed their first 3-0 clean sweep at home since 1978, also against New Zealand.
But their attempts got off to a terrible start when Andrew Strauss was judged lbw to Cairns for six.
It was another controversial decision by umpire Simon Taufel, who has come under fire for a number of dubious calls this Test.
Then Marcus Trescothick departed, lobbing a simple catch back to bowler James Franklin for nine, to leave England on 16-2.
England captain Michael Vaughan did not hang around either and was dismissed by a peach of a delivery from Cairns, lbw for 10.
Mark Butcher and Graham Thorpe then wrenched the match back in England's favour with a 84-run partnership.
Butcher recorded his first half-century of an otherwise poor series but went on the stroke of tea, lbw to Cairns for 59.
Andrew Flintoff, who has had a successful time with bat and ball against New Zealand, failed when it really mattered, giving his wicket away for five to hand the advantage back to the Kiwis.
Thorpe and Geraint Jones then put on an impressive 52-run partnership before the wicket-keeper was brilliantly caught in the gully by Jacob Oram for 27.
Jones' dismissal paved the way for Giles, but the spinner was lucky to remain at the crease after a tired Cairns failed to pluck a relatively simple caught-and-bowled chance on nine.
Thorpe hit his ton off 163 balls, including 13 fours
At that stage England were still 49 runs from victory but the pair rode their luck for a brilliant win and Giles ended unbeaten on 35.
The victory was set up earlier in the day, after England's bowlers had steam-rollered New Zealand.
The Kiwis resumed on 190-5 but their plans to occupy the crease fell apart when they were dismissed inside 90 minutes.
Their last five wickets fell for just 28 runs with Giles claiming 4-46, his best figures on home soil and the first time since 2002 he had taken four wickets in an innings.
Steve Harmison augmented his position as the world's leading wicket-taker this year, with 2-7 in eight overs, including five maidens.
Craig McMillan was the first man out when he was lbw for 30 to Harmison, then Cairns was bowled through the gate by Giles for just one run.
Oram fell to Harmison without troubling the scorers and nightwatchman Franklin was caught behind off Flintoff after a gutsy 77-ball 17.
England wrapped up the innings when Kyle Mills looped a Giles delivery to Harmison for eight.