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