William playfully shoved his younger brother out of the way to take the ball as the pair joined in during a coaching session as part of a Coach Core project at Gorbals Leisure Centre in Glasgow.
Princes William and Harry play five-a-side football
The project includes dozens of youngsters, including 21-year-old Lauren Weir, who spoke about scoring the winning goal: "Prince Harry set me up for it and gave me a high 10. I said to Prince William 'hard lines, better luck next time' and he found that quite funny."
Gillian Sloey, a 20-year-old footballer also joined in and said: "[Prince William] did say he is quite competitive. It was a pleasure meeting them and great to see them getting involved and having fun. "They had smiles on their faces most of the way through."
Prince William meets children from Bridgend nursery
The royal trio later headed back to the Commonwealth Games where they watched the athletics with Lord Sebastian Coe. They also found the time to stop off at the Athlete's Village where they showed their support for the children of the Commonwealth with UNICEF.
The international charity has been aiming to raise money and awareness of the importance of sport throughout the Commonwealth for children with the Put Children First campaign, so far raising a total of £4.9million.
Prince Harry takes boxing lessons from apprentices
During their visit the royal trio were listened to a live performance performed by school children from the east end of Glasgow, before taking part in three traditional games enjoyed by young people from different countries across the Commonwealth – Circle Sepak Takraw (Malaysia), Moral (Trinidad and Tobago) and Three Tins (South Africa).
During the game of Moral, Kate said: "This is much harder than it looks. That's a seriously good game", while the two Princes once again tried to outdo each other.
As Harry scored 14 during the Asian game Circle Sepak Takraw, Prince William and Sir Chris Hoy set out to beat him, eventually scoring an impressive 15. "Yes! We did it, we won!" the Duke of Cambridge said.