William McKinley (January 29, 1843September 14, 1901) was the 25th president of the United States, serving from 1897 until his assassination in 1901. As a politician he led a realignment that made his Republican Party largely dominant in the industrial states and nationwide until the 1930s. He presided over victory in the Spanish–American War of 1898; gained control of Hawaii, Puerto Rico, the Philippines and Cuba; restored prosperity after a deep depression; rejected the inflationary monetary policy of free silver, keeping the nation on the gold standard; and raised protective tariffs to boost American industry and keep wages high. A Republican, McKinley was the last president to have served in the American Civil War; he was the only one to begin his service as an enlisted man, and end as a brevet major. After the war, he settled in Canton, Ohio, where he practiced law and married Ida Saxton. In 1876, McKinley was elected to Congress, where he became the Republican expert on the protective tariff, which he promised would bring prosperity. His 1890 McKinley Tariff was highly controversial and, together with a Democratic redistricting aimed at gerrymandering him out of office, led to his defeat in the Democratic landslide of 1890. He was elected governor of Ohio in 1891 and 1893, steering a moderate course between capital and labor interests. With the aid of his close adviser Mark Hanna, he secured the Republican nomination for president in 1896 amid a deep economic depression. He defeated his Democratic rival William Jennings Bryan after a front porch campaign in which he advocated "sound money" (the gold standard unless altered by international agreement) and promised that high tariffs would restore prosperity. Rapid economic growth marked McKinley's presidency. He promoted the 1897 Dingley Tariff to protect manufacturers and factory workers from foreign competition and in 1900 secured the passage of the Gold Standard Act. He hoped to persuade Spain to grant independence to rebellious Cuba without conflict, but when negotiation failed, requested and signed Congress's declaration of war to begin the Spanish-American War of 1898. The United States victory was quick and decisive. As part of the peace settlement, Spain turned over to the United States its main overseas colonies of Puerto Rico, Guam and the Philippines while Cuba was promised independence, but at that time remained under the control of the United States Army. The United States annexed the independent Republic of