When a person is judged guilty of a crime, they are sentenced by a judge.