According to BBC:
Prince William has been installed as a Knight of the Order of the Thistle, the highest honour available in Scotland.
The ceremony at St Giles Cathedral in Edinburgh was followed by a parade down the Royal Mile led by 400 pipers.
The event was followed by a procession involving pipers, drummers and dancers, travelling down the Royal Mile to the Scottish Parliament building.
The Queen is traditionally in Scotland for Royal Week, but this year it has incorporated celebrations of the Diamond Jubilee.