Dream meaning » trial
To dream that you are on trial indicates that you need to be more accepting of yourself and less judgmental of others. You may be too harsh on yourself or of others.
Alternatively, a trial suggests that you are feeling guilty about something in your waking life.
The Hidden Meanings of Your Dreams:

You’re focusing on authority, morality, justice, and order. You are actually dealing with legal issues.

You feel pressure to be perfect. You are examining an aspect of your behavior that’s been out of line, you’re judging others, or feel others are judging you. You feel guilty about something, and your conscience is urging you to do the right thing. You feel something or someone is unfair. You are threatened with embarrassment from false statements and accusations, or your reputation is at stake due to your actions.

You need to make a decision about something based on your own mores. You are focusing on universal laws and principles.
Dreaming of being on trial may indicate that the dreamer needs to be more accepting of himself or herself and less judgmental of others.
If you see yourself sentenced to a trial in your dreams, it symbolizes the need to review your behavior, your way of treating people, or the way you focus your life projects. The trial indicates that you are not satisfied with your own behavior. In and of itself, the trial is a symbol of the fight between good and evil.
If you are in the role of judge rather than the accused, it means that soon you will take on a great responsibility.
The majority of oneiric oracles agree that this dream foretells legal disputes.
To dream of being on trial is a warning to be cautious in developing new ties and/or entering into new ventures. Stick to known paths for the time being.
At the heart of a trial is the principle of right and wrong, and the process of deciding what is true. You may dream about a trial when you are feeling guilty about something or when you are being accused of something you are innocent of. The word “trial” is synonymous with any very challenging situation, and such a dream image may appear when you are facing anything in life that feels onerous and difficult.