Does not deter crime. Countries who execute commonly cite the death penalty as a way to deter people from committing crime. This claim has been repeatedly discredited, and there is no evidence that the death penalty is any more effective in reducing crime than imprisonment.
The death penalty is a symptom of a culture of violence, not a solution to it.