England's Tom Daley successfully defended his Commonwealth Games title in the men's 10-metre platform final as the Glasgow 2014 diving competition concluded at Edinburgh's Royal Commonwealth Pool.
The 20-year-old from Plymouth won his third Commonwealth gold, after two in Delhi four years ago, with a score of 516.55.
The margin of victory was a huge 82.85 as Malaysia's Ooi Tze Liang finished second on 433.70 and Canada's Vincent Riendeau was third with 429.25.
Matthew Mitcham of Australia, the 2008 Olympic champion and silver medallist behind Daley four years ago, could finish only fourth with 420.00.
Daley's win took England's tally from 10 events to 10 medals, four of them gold.
Hannah Starling earlier claimed bronze in the women's three-metres springboard.
Daley did not quite conquer his "demon" dive, having mistimed it on Saturday morning, but it was a peerless performance.
Daley has had trouble when it comes to the 'twister' - a back two-and-a-half somersault with two-and-a-half twists - and scored just 37.80, after landing with quite a splash, in qualifying.
His recovery - two scores above 100 - saw him advance in first place, meaning he was to dive last of the 12 competitors in the final.
Daley had also been unhappy with his opening dive - an armstand back triple somersault - in the preliminaries, but in the final he delivered and was awarded 94.50 to take a clear first-round lead, while his rival Mitcham was a lowly eighth.
Then came the twister, which Daley produced en route to London 2012 Olympic bronze when a camera flash distracted him and he asked to re-perform the dive.
It has haunted him since and his performance was improved in the final, with 64.80 to see him remain top, ahead of Domonic Bedggood by 0.90.
Daley enhanced his halfway advantage to 26 points with 81.60 for his inward three-and-a-half somersault.
A 79.55 for his forward four-and-a-half somersault scored 79.55 as his lead over the field extended to 29.25 with two dives to go.
Daley's penultimate dive was a back three-and-a-half somersault and a score of 102.60 saw him take a commanding 64.20-point lead into the final round.
His final dive was a reverse three-and-a-half somersault and a medal was already confirmed, with Daley in third.
He scored 93.50 to secure an emphatic victory.
Nicola Adams repelled the brave challenge of Belfast flyweight Michaela Walsh to claim boxing gold.
The 31-year-old Olympic champion was simply too classy for Walsh, who will go home with a richly deserved silver medal after a promising week of performances.
But remarkably the three ringside judges did not quite see the fight the same way with one scoring in favour of Walsh as Adams triumphed only via split decision.
Fearless Walsh went into the fight convinced of her ability to cause an upset and started well as she snaked home a right hand in the opening seconds.
But Adams stepped up a gear, landing a left and right combination which wobbled Walsh, and following up with a sharp right hand as she pursued the Northern Ireland fighter around the ring.
Adams never let go of her dominance, relying on all her considerable experience to keep Walsh at bay and land shots on the button almost at will.
After a tangle sent the pair rolling on the floor early in the third round, Walsh had some success with her left hand, but Adams responded with a good right and resumed command.
At the end of a more competitive fourth both fighters raised their arms in triumph, but the reality was that Adams had once again proved herself a class apart.
Northern Ireland's Paddy Barnes retained his light-flyweight title by outpointing India's Devendro Laishram, while team-mate Michael Conlan defeated England's Qais Ashfaq in an entertaining bantamweight brawl.
Scotland's Charlie Flynn was crowned lightweight champion after a fiery win over Northern Ireland's Joe Fitzpatrick, and Josh Taylor survived a torrid final round to win a second gold medal for the host nation in the men's light-welterweight category.
Savannah Marshall went some way towards erasing the memory of her Olympic nightmare by winning gold in the women's middleweight competition.
The Hartlepool 23-year-old, who went into London 2012 as hot favourite but was beaten in the first round, came on strong to see off eager Canadian Ariane Fortin.
Powerful England welterweight Scott Fitzgerald capped his first major international competition by blasting out India's Mandeep Jangra, while middleweight Antony Fowler produced a powerful performance to see off Indian superstar Vijender.
London super-heavyweight Joe Joyce secured a fifth and final boxing gold for England with a unanimous decision over Australia's Joe Goodall
Meanwhile, husband and wife team Joanna and Paul Drinkhall won gold in the all-English mixed doubles table tennis final as they beat Liam Pitchford and Tin-Tin Ho 3-2.
The Drinkhalls claimed the first game 11-7 before stretching their lead with a comfortable 11-3 win in the second.
However, Ho and Pitchford fought back well and won the next two to level the match at 2-2.
They then claimed first blood in game five but a pumped-up Paul Drinkhall claimed the next point before a missed shot put the married pair ahead.
A 2-1 lead quickly translated to a 5-1 advantage, with the Drinkhalls wrapping up victory by an 11-5 margin in the fifth.
England secured two medals in powerlifting as Natalie Blake took a silver and IPC world champion Ali Jawad a bronze.
Blake was a morning winner in the women's lightweight competition, while Jawad was successful in the men's equivalent in the afternoon.
England suffered the cruellest of semi-final heartbreaks in netball as they slipped to an agonising last-second defeat to New Zealand to miss out on their first ever gold-medal match.
For the second time in the tournament, England wasted a golden chance to pull off one of their greatest ever results, losing possession in the final moments to gift their opponents and two-time reigning champions a 35-34 victory.
Against Australia in the pool stage, Jo Harten's miss cost England dear. On this occasion a turnover following an error from Kadeen Corbeen gave Maria Tutaia the chance to make the winning shot and leave England crestfallen.
In the badminton competition, Chris and Gabby Adcock remained on course for gold after powering through a potentially tricky semi-final against Scottish rivals Robert Blair and Imogen Bankier (21-14 21-14).
England failed to make it a shoot-out double as Australia claimed hockey gold after a dramatic women's final at Glasgow Green.
Lily Owsley had put England ahead midway through the second half but Jodie Kenny levelled the game at 1-1 with just 17 seconds remaining.
The English, who beat New Zealand in a shoot-out in the semi-finals, could not repeat their heroics though as Alex Danson, Susie Gilbert and Nicola White all failed to beat Aussie keeper Madonna Blyth as they lost 3-1.