Charles J. Guiteau was hung until dead for the assassination of US President James A. Garfield.

Guiteau thought that a mediocre speech he wrote for Garfield’s presidential campaign won Garfield the presidency and demanded a consulship in Europe in return. After years of rejection, he finally snapped and shot the President twice in the back.

Source