Princess Anne has concluded her engagements in Northern Ireland on the final day of her two-day visit.
Princess Anne last visited Northern Ireland in September 2002
The Princess Royal earlier faced an anti-war protest on Wednesday at Magee College in Londonderry.
About 20 protesters called on the Princess to cancel her normal duties because of the plight of children in Iraq.
Princess Anne is the patron of the charity Save the Children.
She was in Derry to open a £6.7m learning resource centre.
The protesters blew whistles and held anti-war banners outside the gates of the Magee campus of the University of Ulster.
Police said there was no trouble and no arrests were made.
Later on Wednesday, she visited Magilligan Prison in County Derry.
The Princess met senior management of the prison, as well as staff and prisoners involved in a scheme which provides confidential support for those in custody.
She rounded off her visit to Northern Ireland by officially opening the newly refurbished Clifton House in Belfast.
The Princess spent Tuesday night at Hillsborough Castle, where she hosted a reception for people involved in care services.
She also attended a dinner for members of the rural and fishing communities.
Earlier on Tuesday, the Princess Royal visited members of the King's Own Hussars in Omagh in County Tyrone.
She spent some time with the regiment as part of a private visit.
On arrival at Hillsborough Castle, the Princess was greeted by the Lord Lieutenant of County Down, Lord O'Neill.
Last September, Princess Anne presented a medal to the head of the Northern Ireland Prison Service to recognise the bravery of staff during the Troubles.
She also presented the medal to families of prison officers who have been murdered over the past 30 years and some who had been injured in terrorist attacks.
A total of 29 prison staff were murdered and many others injured and intimidated during the Troubles.