Who did william McKinley run against?

In the 1896 U.S. presidential election, William McKinley ran against William J. Bryan. And the same thing for the 1900 U.S. presidential election.