More than 500 local people became prisoners for the day as part of Dundee’s Open Day weekend.
Dundee Sheriff Court welcomed hundreds of curious and apprehensive visitors as part of the event which sees normally restrictive buildings open their doors to the general public.
Guests were taken on a tour of the court, were able to take part in a mock trial and even try out the court’s cells.
Children took great delight in locking their parents in cells and enjoyed finding out what it is like to work in the court.
Participants also had the chance to ask security staff and social workers about the role they play in trials.
Nine-year-old Michael Kennedy, who was with his mum and dad, enjoyed trying on a wig worn by a sheriff and revelled in locking his dad in a cell.
He said: “I liked locking my dad in the cell but I didn’t like being in one.
“I enjoyed my visit because I now know what happens inside a court.
“I liked trying on the sheriff’s wig too.
“It looks strange.”
Sheriff clerk Len Macintosh who accompanied guests on their tour said: “This is the fourth or fifth tour I have done today.
“We’ve had about 350 so far but we will hit 500 before the day is done.
“This is the first year we have taken part in a while as the last time we offered people the chance to visit it wasn’t that well received.
“Today though it’s been great.
“We like to give people an idea of what goes on inside court because there’s sometimes a lot of myths.
“Hopefully people enjoy it and leave with more of an idea.”
Doors Open Day is an annual event giving people free access to hundreds of buildings across Scotland.