Ulysses S. Grant served under the 45th President of the United States.
Ulysses S. Grant ( born Hiram Ulysses Grant ; April 27 , 1822 -- July 23 , 1885 ) was the 18th President of the United States ( 1869 -- 77 ) . As Commanding General ( 1864 -- 69 ) , Grant worked closely with President Abraham Lincoln to lead the Union Army to victory over the Confederacy in the American Civil War .