The purpose of the criminal justice system is to protect society, punish offenders and rehabilitate criminals. It does this by following a process where the offender is arrested and tried for what they did wrong. If found guilty, they are punished with jail time or other punishments such as fines or community service.