stylistic:tone
Civil War years

As the American Civil War was beginning, Whitman published his poem " Beat! Beat! Drums! " as a patriotic rally call for the Union. Whitman's brother George had joined the Union army in the 51st New York Infantry Regiment and began sending Whitman several vividly detailed letters of the battle front. On December 16, 1862, a listing of fallen and wounded soldiers in the New-York Tribune included "First Lieutenant G. W. Whitmore", which Whitman worried was a reference to his brother George. He made his way south immediately to find him, though his wallet was stolen on the way. "Walking all day and night, unable to ride, trying to get information, trying to get access to big people", Whitman later wrote, he eventually found George alive, with only a superficial wound on his cheek. Whitman, profoundly affected by seeing the wounded soldiers and the heaps of their amputated limbs, left for Washington, D.C., on December 28, 1862, with the intention of never returning to New York.

In Washington, D.C., Whitman's friend Charley Eldridge helped him obtain part-time work in the army paymaster's office, leaving time for Whitman to volunteer as a nurse in the army hospitals. He would write of this experience in "The Great Army of the Sick", published in a New York newspaper in 1863 and, 12 years later, in a book called Memoranda During the War. He then contacted Emerson, this time to ask for help in obtaining a government post. Another friend, John Trowbridge, passed on a letter of recommendation from Emerson to Salmon P. Chase, Secretary of the Treasury, hoping he would grant Whitman a position in that department. Chase, however, did not want to hire the author of such a disreputable book as Leaves of Grass.

The Whitman family had a difficult end to 1864. On September 30, 1864, Whitman's brother George was captured by Confederate forces in Virginia, and another brother, Andrew Jackson, died of tuberculosis compounded by alcoholism on December 3. That month, Whitman committed his brother Jesse to the Kings County Lunatic Asylum. Whitman's spirits were raised, however, when he finally got a better-paying government post as a low-grade clerk in the Bureau of Indian Affairs in the Department of the Interior, thanks to his friend William Douglas O'Connor. O'Connor, a poet, daguerreotypist, and an editor at The Saturday Evening Post wrote to William Tod Otto, Assistant Secretary of the Interior, on Whitman's behalf. Whitman began the new appointment on January 24, 1865, with a yearly salary of $1,200. A month later, on February 24, 1865, George was released from capture and granted a furlough because of his poor health. By May 1, Whitman received a promotion to a slightly higher clerkship and published Drum-Taps.

Effective June 30, 1865, however, Whitman was fired from his job. His dismissal came from the new Secretary of the Interior, former Iowa Senator James Harlan. Though Harlan dismissed several clerks who "were seldom at their respective desks", he may have fired Whitman on moral grounds after finding an 1860 edition of Leaves of Grass. O'Connor protested until J. Hubley Ashton had Whitman transferred to the Attorney General's office on July 1. O'Connor, though, was still upset and vindicated Whitman by publishing a biased and exaggerated biographical study, The Good Gray Poet, in January 1866. The fifty-cent pamphlet defended Whitman as a wholesome patriot, established the poet's nickname and increased his popularity. Also aiding in his popularity was the publication of " O Captain! My Captain! ", a conventional poem on the death of Abraham Lincoln, the only poem to appear in anthologies during Whitman's lifetime.

Part of Whitman's role at the Attorney General's office was interviewing former Confederate soldiers for presidential pardons. "There are real characters among them", he later wrote, "and you know I have a fancy for anything out of the ordinary." In August 1866, he took a month off to prepare a new edition of Leaves of Grass which would not be published until 1867 after difficulty in finding a publisher. He hoped it would be its last edition. In February 1868, Poems of Walt Whitman was published in England thanks to the influence of William Michael Rossetti, with minor changes that Whitman reluctantly approved. The edition became popular in England, especially with endorsements from the highly respected writer Anne Gilchrist. Another edition of Leaves of Grass was issued in 1871, the same year it was mistakenly reported that its author died in a railroad accident. As Whitman's international fame increased, he remained at the attorney general's office until January 1872. He spent much of 1872 caring for his mother, who was now nearly eighty and struggling with arthritis. He also traveled and was invited to Dartmouth College to give the commencement address on June 26, 1872.