William McKinley was the 25th President of the United States, serving from 1897 until his assassination in 1901. His presidency is closely associated with the Spanish-American War, which marked a significant turning point in American foreign policy as the U.S. began to assert itself as an imperial power.