An executioner, also known as a hangman or headsman, is an official who carries out a sentence of capital punishment on a legally condemned person.