A sentence is a formal consequence imposed by a court upon a person found guilty of a crime, reflecting the legal penalties for their actions. It serves as both a punishment and a deterrent, aiming to protect society and rehabilitate the offender. The sentence can vary significantly based on the severity of the crime, legal guidelines, and individual circumstances.