Capital punishment is used by governments to kill people.