The guillotine was still the only legal way to execute a person in France until 1979, when France stopped using the death penalty. In Nazi Germany, the guillotine was used to kill prisoners sentenced for serious crimes like murder, treason, or conspiracy against the government. 