The Queen had been given a tiny gown for her new grandson Prince William two weeks after his birth in 1982.
Twenty-three years later, the Queen arrives at St Andrews ahead of Prince William's graduation. He gained a 2:1 in geography.
Prince Charles, who gained a class 2:2 degree in history from Cambridge University, arrives for his son's graduation.
As each graduate kneels before the chancellor's wooden pulpit, it is the custom for them to be tapped on the head with a 17th century cap called a birretum.
A proud Prince William, wearing a black silk robe, after receiving his degree certificate.
Prince William, who studied for four years at St Andrews, emerges into the sunshine with other new graduates.
The new graduate chats and shakes hands with well-wishers. Hundreds of people lined the streets of the Scottish town.
The prince is in a celebratory mood as he makes his way through the crowds