The surrender formalities to end the Civil War lasted 4 days. On April 9, 1865, Generals Ulysses S. Grant and Robert E. Lee met in the parlor of a house in Appomattox Court House, VA, to discuss the surrender of the Army of Northern Virginia. The terms were generous: The men of Lee's army could return home in safety if they pledged to end the fighting and deliver their arms to the Union Army.
On April 12, 1865, in a quiet but emotional ceremony, the infantry of Lee's army surrendered their arms, folded their battle flags, and received their parole papers, which guaranteed them safe passage home.
For more information, visit The National Archives' American Originals Online Exhibit.