Ulysses S. Grant (born Hiram Ulysses Grant; April 27, 1822 – July 23, 1885) was an American soldier and politician who served as the 18th president of the United States from 1869 to 1877. Before his presidency, Grant led the Union Army as Commanding General of the United States Army in winning the American Civil War. Grant was charged with bringing the soldiers and a few hundred civilians from New York City to Panama, overland to the Pacific and then north to California. At the war's end, Grant remained commander of the army, with duties that included dealing with Maximilian and French troops in Mexico, enforcement of Reconstruction in the former Confederate states, and supervision of Indian wars on the western Plains. After the Grand Review of the Armies, Lee and his generals were indicted for treason in Virginia.