The verb execute means to kill someone as a legal punishment.
Synonyms are hang, behead, murder, or shoot.
The word origins from Old French (14th century) executer. It also sources from Medieval Latin executare, and Latin execut-/exsecut-, past participle stem of exequi/exsequi meaning “to follow out, to follow to the grave”, figuratively “to follow, follow after, accompany, follow up, prosecute, carry out, enforce, execute, accomplish, punish, avenge”. It comes from ex– meaning “out” plus sequi meaning “follow”. Its meaning “to inflict capital punishment” is from late 15th century, from earlier legal sense “perform judgment or sentence on”.
The people don’t think he needs to be executed.
The pirates have executed their hostages.
She begged for her life hoping they won’t execute her.