A man appeared in court after a bomb disposal team visited a report on a suspicious item in the grounds of the Palace of Holyroodhouse.
The Scottish Police said they were called to the Queen’s official residence in Edinburgh at around 8:50 p.m. on Tuesday.
The bomb disposal team was called to the scene to examine the item and make it safe.
Julien Dupuis was arrested and charged with peace-breaking related to the incident.
The 39-year-old from Edinburgh appeared in Edinburgh Sheriff Court on Thursday and made no request.
He has been taken into custody and is expected to reappear within eight days.
In other royal family news, an official visit by Prince Charles to Greece while a travel ban bans people from leaving the UK without good reason has been criticized by anti-monarchy activists and a former government minister.
A Clarence House spokesman said: “This visit is being carried out at the request of the British government.”
This followed an invitation from the Greek Prime Minister Kyriakos Mitsotakis.