He again distinguished himself in the battles of Berryville, Fisher's Hill, and Opequan. He was now on General Crook's staff, and at the bloody battle of the Opequan occurred an incident that showed the young officer capable of becoming a successful commander. He was sent with an order to General Duval to move his brigade to a position on the right of the Sixth Corps. The General asked, "By what route?" and the Captain suggested, "I would move up this creek." The General, ignorant of the ground, refused to move without definite orders. "Then," said McKinley, who knew that there was urgent need of the movement, "by command of General Crook, I order you to move your command up this ravine to a position on the right of the army." The movement was made at once, and proved successful. McKinley was also in the fierce fight at Cedar Creek, and afterward served on Hancock's staff. In March, 1865, he received from President Lincoln a commission as Major by brevet for gallant services.

With so much of manly character developed at the age of twenty-two, and so much experience in the greatest conflict of modern times, he turned to the study of law—first in an office, and then in the Albany Law School—and was admitted to the Bar in 1867. He settled in Canton, which was thenceforth his home, and there in 1871 he married Miss Ida Saxton, who was cashier in her father's bank. Their devotion for thirty years, and the tenderness and constancy with which he watched over her in the latter years when she was an invalid, form a chapter that never can be mentioned without touching the hearts of their countrymen.

Mr. McKinley made his first political speech in 1867, and in 1869, as a Republican, was elected prosecuting attorney for Stark County. In 1875 he made effective speeches for honest money and the resumption of specie payments, and in 1876 he was elected to Congress by a large majority. He was re-elected six times, but in 1890 was defeated by the gerrymandering of his district. In 1891 he was nominated for Governor of Ohio, and was elected by a plurality of 21,500. He was re-elected in 1893 by a plurality of more than 80,000.

In Congress he had been a prominent debater on many important questions, but he was chiefly conspicuous as an advocate of protection, and, as Chairman of the Committee of Ways and Means, he was largely the author of the tariff bill of 1890 which bears his name. It was slow work getting the bill through Congress, and it did not become a law till October. The most amazing misrepresentations of it were set afloat, and it had not time to vindicate itself before the Congressional elections came on in November, when the party that had carried it through was overwhelmingly defeated.

During these years Mr. McKinley was almost constantly in the field as a political speaker, and he became known as one of the most popular and effective that our country has produced. It is computed that he addressed a larger number of men, from the platform, than any other man that ever lived.

He was a delegate to several national conventions of his party, and in 1888, and again in 1892, there was a strong movement to give him the presidential nomination; but he decisively suppressed it each time—on the first occasion because he had gone there as a friend and supporter of John Sherman, and on the second because he declared that President Harrison was entitled to a renomination. In 1896 he was unanimously nominated on the first ballot. One circumstance that pointed him out as the logical candidate was the fact that his tariff bill had been replaced by one that proved a complete failure. The most exciting question in the canvass was that of free coinage of silver. Mr. McKinley was on a platform that declared for the gold standard, and his opponent, William J. Bryan, was on one that declared for free and unlimited coinage of silver at the ratio of sixteen to one. Mr. McKinley was elected by a plurality in the popular vote of more than 600,000, and in the electoral college by 271 to 176. In 1900 he was renominated, and his opponent as before was Mr. Bryan, the issues being the same. This time Mr. McKinley had a plurality in the popular vote of more than 800,000, and in the electoral college had 292 to 155.

In the canvass of 1896 Mr. McKinley announced that he would make no electioneering tour. But the people were determined to hear him, and they went to Canton in large delegations and excursions from all parts of the country. From his doorstep he made more than three hundred addresses, speaking thus to three-quarters of a million persons. There was scarcely any repetition, yet every speech was an admirable specimen of argument and oratory.

Immediately after his first inauguration he called a special session of Congress to revise the tariff, and the new bill was put through in time to have a fair chance to vindicate itself before new elections occurred. The other notable event in the first year of his administration was the treaty for annexation of the Hawaiian Islands, which he signed in June, but which was not confirmed by the Senate till a year later. In 1898 occurred the most important event in American affairs since the Civil War—the war with Spain. This arose from the intolerable condition of things in Cuba, where the Spanish authorities, endeavoring to suppress the last of many insurrections, had resorted to the most cruel measures, which entailed horrible suffering upon the women and children, and the feeling was intensified by the blowing up of the battleship Maine in the harbor of Havana, February 15, 1898. President McKinley did his utmost to prevent actual war; and when he saw that to be inevitable, he delayed it as long as possible and pushed on the preparations for it with all practicable speed. On April 11th he sent to Congress a message on the subject, and on the 20th he signed a joint resolution declaring that the people of Cuba ought to be free and independent, and demanding that the Government of Spain relinquish its authority over that island. Diplomatic relations were broken off at once, and a state of war was declared. Ten days later an American fleet commanded by Commodore George Dewey entered the harbor of Manila, destroyed a Spanish fleet, and silenced the shore batteries, without losing a vessel or a man. On July 3d another American fleet destroyed another Spanish fleet that had run out of the harbor of Santiago, Cuba, and was trying to escape westward. In this action, again, the Americans lost not a single vessel, and but one man. Two days earlier than this the American land forces that had been approaching the defences of Santiago on the east advanced to the final assault, and after bloody fighting at San Juan Hill and El Caney they were victorious. The invasion and capture of the island of Porto Rico, soon afterward, ended the war in the West Indies. In August the American land forces that had been sent to the Philippines captured the city of Manila and its garrison. Peace soon followed, and by the treaty signed in Paris, December 10th, Spain relinquished her sovereignty over Cuba and ceded to the United States Porto Rico and the Philippines, receiving $20,000,000 as an indemnity for her expenditures in the last-named islands.