A deterrent is a consequence for an unwanted action that is used as a way of making people decide to forego the unwanted action to avoid the consequences. For example, capital punishment and jail time acts as a deterrent for violent crimes. While someone might be upset and emotional at a time, they may practice physical restraint from acting aggressively to avoid the possibility of being arrested, charged, and eventually incarcerated for battery.