The police experience no doubt helped mold him into the law-and-order Republican he'd be for the remainder of his life. He was tested when he won the New York gubernatorial election of 1898 by a 1-percent margin following the Spanish-American War (over Democratic opponent Augustus Van Wyck). His victory came on the heels of the corrupt administration of Frank S. Black, which was bruised by a scandal involving the Erie Canal Commission.