In medieval times, criminals were often executed on a gibbet as a public warning.
The thief was sentenced to die on the gibbet.