Answer
James A. Garfield defeated Winfield Scott Hancock in the 1880 presidential race. Garfield was a Republican from Ohio, while Hancock was a Democrat from Pennsylvania. Garfield won the election by a narrow margin, receiving 48.6% of the popular vote and 214 electoral votes to Hancock's 47.9% and 155 electoral votes. The election was notable for being the first time that two Civil War generals ran against each other for president.