After a person is convicted of a crime, the appropriate punishment is determined in the sentencing phase.

Here's information on sentencing, including the factors that determine sentencing, the types of sentences, and details on how probation works.