What Year was the Death Penalty Made?

The death penalty dates all the way back to the year 712. The first known records of the death penalty use were in China. It was a hanging due to murder.