The death penalty, or capital punishment, has ancient roots, dating back to the Code of Hammurabi in 1754 BC. Used across civilizations, it served as a deterrent for crime. Over centuries, various methods like hanging, firing squad, and lethal injection emerged. As views on human rights evolved, many countries began to abolish it, sparking ongoing debates globally.