The Bible endorses the death penalty. Leviticus 24:17 in the King James Bible says "And he that killeth any man shall surely be put to death."
But the death penalty should only be used for murderers. That sicko who murdered twelve people in a movie theater on July 20, 2012 should have gotten the death penalty. Anne Boleyn, Lady Jane Grey, Marie Antoinette, and Thomas More were not murderers and should not have gotten the death penalty.