Trial and execution
Once Garfield died, the government officially charged Guiteau with murder. He was formally indicted on October 14, 1881, on the charge of murder, upgraded from the previous charge of attempted murder. Guiteau pleaded not guilty to the charge. He also sent Arthur a letter in which he argued that Arthur should set him free because by killing Garfield, he had elevated Arthur to the presidency and increased Arthur's salary from $8,000 to $50,000. The trial began in Washington, D.C., on November 17 in the Supreme Court for the District of Columbia (which became the U.S. District Court for the District of Columbia). The presiding judge in the case was Walter Smith Cox. Although Guiteau insisted on trying to represent himself during the entire trial, the court appointed Leigh Robinson to defend him. After less than a week of trial, Robinson retired from the case. George Scoville then became lead defense counsel. While Scoville's legal experience lay in land title examination, he had married Guiteau's sister and felt obliged to defend him. Wayne MacVeagh, the U.S. Attorney General, served as the chief prosecutor. MacVeagh named five lawyers to the prosecution team: George Corkhill, Walter Davidge, retired judge John K. Porter, Elihu Root, and E. B. Smith.
Guiteau's trial was one of the first high-profile cases in the United States where a defense based on a claim of temporary insanity was considered. Guiteau vehemently insisted that while he had been legally insane at the time of the shooting (claiming God had taken away his free will) he was not medically insane, which was one of the major causes of the rift between Guiteau and his defense lawyers. The judge gave the jury instructions based on the M'Naghten test.
The defense hired Edward Charles Spitzka, a leading alienist, as an expert witness in support of an insanity defense. Spitzka had stated that it was clear "Guiteau is not only now insane, but that he was never anything else." While on the stand, Spitzka testified that he had "no doubt" that Guiteau was both insane and "a moral monstrosity". He came to the conclusion that Guiteau had "the insane manner" he had so often observed in asylums, adding that Guiteau was a "morbid egotist" with "a tendency to misinterpret the real affairs of life". He thought the condition to be the result of "a congenital malformation of the brain".
Corkhill, who was the District of Columbia's district attorney and on the prosecuting team, summed up the prosecution's opinion of Guiteau's insanity defense in a pre-trial press statement that also mirrored public opinion on the issue:
He's no more insane than I am. There's nothing of the mad about Guiteau: he's a cool, calculating blackguard, a polished ruffian, who has gradually prepared himself to pose in this way before the world. He was a deadbeat, pure and simple. Finally, he got tired of the monotony of deadbeating. He wanted excitement of some other kind and notoriety ... and he got it.
Guiteau became something of a media sensation during his entire trial for his bizarre behavior, which included his cursing and insulting the judge, most of the witnesses, the prosecution, and even his defense team, as well as formatting his testimony in epic poems which he recited at length, and soliciting legal advice from random spectators in the audience via passed notes. He dictated an autobiography to the New York Herald, ending it with a personal ad for "a nice Christian lady under 30 years of age." He appeared oblivious to the American public's hatred of him, even after he was almost killed twice himself. He frequently smiled and waved at spectators and reporters in and out of the courtroom.
At one point, Guiteau argued before Cox that Garfield was killed not by the bullets but by medical malpractice; "The doctors killed Garfield, I just shot him." Throughout the trial and up until his execution, Guiteau was housed at St. Elizabeths Hospital in the southeastern quadrant of Washington, D.C. While in prison and awaiting execution, Guiteau wrote a defense of the assassination he had committed and an account of his own trial, which was published as The Truth, and the Removal.
To the end, Guiteau was making plans to start a lecture tour after his perceived imminent release and to run for president himself in 1884, while at the same time continuing to delight in the media circus surrounding his trial. He was found guilty on January 25, 1882, and sentenced to death. After the guilty verdict was read, Guiteau stepped forward, despite his lawyers' efforts to tell him to be quiet, and yelled at the jury, saying, "You are all low, consummate jackasses!", plus a further stream of curses and obscenities before he was taken away by guards to his cell to await execution. Guiteau appealed, but his conviction was upheld.
In the weeks before his execution, Guiteau composed a lengthy poem asserting that God had commanded him to kill Garfield to prevent Blaine's "scheming" to go to war with Chile and Peru during the War of the Pacific. The Evening Star printed this poem on June 7, but omitted two verses denigrating Arthur and the Supreme Court. Guiteau also claimed that Arthur knew the assassination had saved the United States, and that Arthur's refusal to pardon him was the "basest ingratitude."
The night before his June 30 execution, Guiteau was restless, tossing and turning in his cell. That morning, he seemed calm. On the way to the gallows, Guiteau was accompanied by warden John S. Crocker, hangman Robert Strong, the Rev. W. W. Hicks, and four guards. His hands were tied. He tripped on the first step of the scaffold and stubbed his toe. On the scaffold, Hicks delivered a short prayer; then Guiteau read aloud from Matthew 10:28–41 (Guiteau's hands being tied, Hicks held the Bible open for him); then delivered a "last dying prayer" in which he declared that God "did inspire the act for which I am now murdered" and predicted that "this government and this nation, by this act, will incur Thy eternal enmity," adding that "Thy divine law of retribution will strike this nation and my murderers." Guiteau also excoriated President Arthur as "a coward and an ingrate whose ingratitude to the man that made him and saved his party and land from overthrow has no parallel in history." Finally, Guiteau "chant[ed], in a sad, doleful style," a poem "that I wrote this morning about 10 o'clock" called "I Am Going to the Lordy", which he had written during his incarceration. Multiple times during the reading, Guiteau's voice faltered and he began sobbing, even stopping to lay his head on Hicks' shoulder. After he finished reading his poem, a black hood was placed over Guiteau's head. He shouted out "Glory!" three times, and may have also said, "I come! Ready! Go!" By prearrangement with Strong, Guiteau signaled that he was ready to die by dropping the paper, and the gallows trapdoor was sprung at 12:40 PM. After only one sign of muscle contraction, Guiteau was cut down. Although the rope had broken his neck instantly with the fall, doctors found that Guiteau's heart and pulse were still detectable, but within approximately fifteen minutes, his heart and pulse slowed down and stopped.
Guiteau's body was not returned to his family, as they were unable to afford a private funeral, but was instead autopsied and buried in a corner of the jail yard. With tiny pieces of the hanging rope already being sold as souvenirs to a fascinated public, rumors immediately began to swirl that jail guards planned to dig up Guiteau's corpse to meet demands of this burgeoning new market. Fearing scandal, the decision was made to disinter the corpse. The body was sent to the National Museum of Health and Medicine in Maryland, which preserved Guiteau's brain, as well as his spleen (which the autopsy discovered to have been enlarged), and bleached his skeleton. These were placed in storage by the museum. Parts of Guiteau's brain remain on display in a jar at the Mütter Museum in Philadelphia.