I was the Union Army commander in the Civil War.
• I forced General Robert E. Lee to surrender at Appomattox Court House.
• I was president of the United States from 1869 to 1877.

Who am I?