probation
Probation can be something a criminal court orders that you have to do as part of your sentence. A sentence is the punishment the court gives you if you’re found guilty.
Probation usually comes with conditions. For example, you may have to report to a probation officer or go to a drug treatment program.