Andy Murray has been presented with an OBE (Order of the British Empire) honour by Prince William.
The Wimbledon champion was awarded in the new year honours, for his achievements in 2012, winning Olympic gold and the US Open.
Murray only just made it on time to the Buckingham Palace ceremony, after being delayed by a random drugs test.
He took to Twitter, writing: "In the middle of a drug test hahaha I'm goin to be late!!!"
For the first time, Prince William stood in for the Queen at the ceremony, where he presented awards recognising achievements to people from across the UK.
Around 25 ceremonies like this are held every year, either at Buckingham Palace, Windsor Castle, and the Palace of Holyroodhouse in Edinburgh.
The Queen hosts most of them but sometimes other members of the Royal Family carry them out on her behalf. This was the first time for the Duke of Cambridge.