When was the Death Penalty Created?

The death penalty is a very old concept; it exists on the oldest surviving record of law that we have, Hammurabbi’s Code. This code explains that the punishment should fit the crime, eye for an eye, and states that the penalty for murder is death.