Death penalty is allowed in the Torah, some Orthodox Jews believe that it should be allowed for certain crimes.
Many Rabbis and Jewish scholars said the guidance in the Torah makes it nearly impossible to issue a death sentence.(shows, where the death penalty is permitted, should only be with greatest caution.)
Israel allows death penalty for acts of genocide, treason and murder, but it's rare and there's wide debate about abolishing it.
The death penalty exists as a deterrent, not retribution.