The man and woman both wore shamrocks. William's was on his military hat.
They posed for photos with the Irish Guards and delivered speeches.
William had been in charge of the Welsh Guards before.
William said that he was proud of the regiment and will keep an eye on them.
A pint of Guinness beer was consumed in celebration by the royals.