Forensic psychiatry is when a special kind of doctor called a psychiatrist helps figure out whether someone did something wrong and what might be wrong with them.
Imagine you and your friend were playing with some toys and your friend suddenly breaks one. You might ask them why they did that and if they feel bad about it. This is kind of like what a forensic psychiatrist does, but it's much more serious than a toy breaking.
Sometimes people break the law, like if they hurt someone else or take things that don't belong to them. When this happens, the police might arrest them and take them to court. But before the court can decide how to punish them, they need to know if something is wrong with the person who broke the law.
This is where the forensic psychiatrist comes in. They talk to the person who broke the law and ask them questions, kind of like when you asked your friend why they broke the toy. They also ask the person's family and friends about their behavior and how they act.
The forensic psychiatrist then uses all of this information to figure out if the person who broke the law has a mental health problem, like they're sick or feel bad all the time. They also help the court decide what kind of treatment the person might need to get better and stop breaking the law.
Basically, the forensic psychiatrist is like a detective for the mind!