How do You Get the Death Penalty?

Someone can received the death penalty for committing a crime so heinous that they are deemed too dangerous to remain alive, or it is deemed that the only punishment just enough is death.