William McKinley served in the U.S. Congress and as governor of Ohio before running for the presidency in 1896. As a longtime champion of protective tariffs, the Republican McKinley ran on a platform of promoting American prosperity and won a landslide victory over Democrat William Jennings Bryan to become the 25th president of the United States. In 1898, McKinley led the nation into war with Spain over the issue of Cuban independence; the brief and decisive conflict ended with the U.S. in possession of Puerto Rico, the Philippines and Guam. In general, McKinley’s bold foreign policy opened the doors for the United States to play an increasingly active role in world affairs. Reelected in 1900, McKinley was assassinated by a deranged anarchist in Buffalo, New York, in September 1901.