Answer:
This is called a trial. Where the prosecutor tries to prove you guilty, and the defender tries to prove you are not guilty. This is the most common form of being charged for a crime. If you are found innocent you will be let go, but if you are found guilty you will be charged and sentenced.