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 Hawaii in 1898 and it became a United States territory.
