http://www.bbc.co.uk/news/uk-29191984# (video)
Games organiser Prince Harry urged the crowd to create a Mexican wave at the closing ceremony
Continue reading the main story
Related Stories
Invictus Games open in London
Invictus Games: Meet the competitors
Harry hosts party for Invictus Games
The Queen has told competitors in the inaugural Invictus Games she has been "deeply moved by your courage, determination and talent".
In a statement read out by organiser Prince Harry at the closing ceremony, she said competitors had "overcome great adversity just to take part".
The prince added that those who had taken part had shown their "unconquerable" character.
Wounded servicemen and women from 13 countries took part in the games.
Prince Harry read out a statement from the Queen to crowds at a concert in London's Queen Elizabeth Olympic Park to mark the end of the games.
'Enormous challenges'
"Prince Philip and I send our heartfelt congratulations to the organisers and supporters of this competition and most importantly to you men and women of the armed forces who have overcome great adversity just to take part in these Games," the Queen said.
"As I have followed the competition over the past four days, I have been deeply moved by your courage, determination and talent.
"All of you have used the power of sport to enhance your own recovery and to raise wider awareness of the enormous challenges faced by wounded veterans."