Okay, kiddo, so in Iran, there are some people called judges who make decisions on what is right and what is wrong according to the laws of the country. Think of them like the grown-up version of a teacher making a decision on what is allowed and what is not allowed in the classroom.
The judges in Iran are part of a group called the Judiciary, which is responsible for making sure that people follow the laws of the country. It's like having a referee in a game to make sure that everyone is playing by the rules.
Now, the Judiciary is divided into three branches just like a tree has branches. The first branch is called the General Courts, where most of the cases are heard. The second branch is called the Revolutionary Courts, which deal with crimes against the country, like terrorism or violence. The third and final branch is called the Special Clerical Court, which deals with cases that involve religious leaders or people who have broken religious rules.
When someone is accused of doing something wrong, they have the right to a fair trial. That means that they get a chance to explain what happened and why they did what they did. It's like telling the teacher why you didn't finish your homework on time.
After the trial, the judge makes a decision on whether the person is guilty or not. If they are guilty, then they will be punished according to the law. That could be anything from paying a fine to going to jail.
So that's basically how the judicial system of Iran works. The judges make sure that people follow the laws of the country, and if someone does something wrong, they get a fair trial before being punished according to the law.