William McKinley (January 29, 1843 - September 14, 1901) was the 25th President of the United States, serving from March 4, 1897 until his assassination in September 1901, six months into his second term. McKinley led the nation to victory in the Spanish-American War, raised protective tariffs to promote American industry, and maintained the nation on the gold standard in a rejection of free silver (effectively, expansionary monetary policy). McKinley was the last president to have served in the American Civil War, and the only one to have started the war as an enlisted soldier, beginning as a private in the Union Army and ending as a brevet major.
William McKinley Jr. was born in 1843 in Niles, Ohio, the seventh child of William McKinley Sr. and Nancy (nee Allison) McKinley (1809-1897). The McKinleys were of English and Scots-Irish descent and had settled in western Pennsylvania in the 18th century, tracing back to a David McKinley who was born in Dervock, County Antrim, in present-day Northern Ireland. There, the elder McKinley was born in Pine Township, Mercer County. The family moved to Ohio when the senior McKinley was a boy, settling in New Lisbon (now Lisbon). He met Nancy Allison there, and married her later. The Allison family was of mostly English descent and among Pennsylvania's earliest settlers. The family trade on both sides was iron-making, and McKinley senior operated foundries throughout Ohio, in New Lisbon, Niles, Poland, and finally Canton. The McKinley household was, like many from Ohio's Western Reserve, steeped in Whiggish and abolitionist sentiment, the latter based on the family's staunch Methodist beliefs. William followed in the Methodist tradition, becoming active in the local Methodist church at the age of sixteen. He was a lifelong pious Methodist. In 1852, the family moved from Niles to Poland, Ohio so that their children could attend the better schools there. Graduating from Poland Seminary in 1859, he enrolled the following year at Allegheny College in Meadville, Pennsylvania. He remained at Allegheny for only one year, returning home in 1860 after becoming ill and depressed. He also spent time at Mount Union College in Alliance, Ohio as a board member. Although his health recovered, family finances declined and McKinley was unable to return to Allegheny, first working as a postal clerk and later taking a job teaching at a school near Poland, Ohio. When the Southern states seceded from the Union and the American Civil War began, thousands of men in Ohio volunteered for service. Among them were McKinley and his cousin William McKinley Osbourne, who enlisted as privates in the newly formed Poland Guards in June 1861. The men left for Columbus where they were consolidated with other small units to form the 23rd Ohio Infantry. The men were unhappy to learn that, unlike Ohio's earlier volunteer regiments, they would not be permitted to elect their officers; they would be designated by Ohio's governor, William Dennison. Dennison appointed Colonel William Rosecrans as the commander of the regiment, and the men began training on the outskirts of Columbus. McKinley quickly took to the soldier's life and wrote a series of letters to his hometown newspaper extolling the army and the Union cause. Delays in issuance of uniforms and weapons again brought the men into conflict with their officers, but Major Rutherford B. Hayes convinced them to accept what the government had issued them; his style in dealing with the men impressed McKinley, beginning an association and friendship that would last until Hayes' death in 1893. After a month of training, McKinley and the 23rd Ohio, now led by Colonel Eliakim P. Scammon, set out for western Virginia (today part of West Virginia) in July 1861 as a part of the Kanawha Division. McKinley initially thought Scammon was a martinet, but when the regiment finally saw battle, he came to appreciate the value of their relentless drilling. Their first contact with the enemy came in September when they drove back Confederate troops at Carnifex Ferry in present-day West Virginia. Three days after the battle, McKinley was assigned to duty in the brigade quartermaster office, where he worked both to supply his regiment, and as a clerk. In November, the regiment established winter quarters near Fayetteville (today in West Virginia). McKinley spent the winter substituting for a commissary sergeant who was ill, and in April 1862 he was promoted to that rank. The regiment resumed its advance that spring with Hayes in command (Scammon by then led the brigade) and fought several minor engagements against the rebel forces. That September, McKinley's regiment was called east to reinforce General John Pope's Army of Virginia at the Second Battle of Bull Run. Delayed in passing through Washington, D.C., the 23rd Ohio did not arrive in time for the battle, but joined the Army of the Potomac as it hurried north to cut off Robert E. Lee's Army of Northern Virginia as it advanced into Maryland. The 23rd was the first regiment to encounter the Confederates at the Battle of South Mountain on September 14. After severe losses, Union forces drove back the Confederates and continued to Sharpsburg, Maryland, where they engaged Lee's army at the Battle of Antietam, one of the bloodiest battles of the war. The 23rd was also in the thick of the fighting at Antietam, and McKinley himself came under heavy fire when bringing rations to the men on the line. McKinley's regiment again suffered many casualties, but the Army of the Potomac was victorious and the Confederates retreated into Virginia. The regiment was then detached from the Army of the Potomac and returned by train to western Virginia. Recognizing McKinley's potential, the Democrats, whenever they controlled the Ohio legislature, sought to gerrymander or redistrict him out of office. In 1878, McKinley faced election in a redrawn 17th district; he won anyway, causing Hayes to exult, "Oh, the good luck of McKinley! He was gerrymandered out and then beat the gerrymander! We enjoyed it as much as he did." After the 1882 election, McKinley was unseated on an election contest by a near party-line House vote. Out of office, he was briefly depressed by the setback, but soon vowed to run again. The Democrats again redistricted Stark County for the 1884 election; McKinley was returned to Congress anyway. For 1890, the Democrats gerrymandered McKinley one final time, placing Stark County in the same district as one of the strongest pro-Democrat counties, Holmes, populated by solidly Democratic Pennsylvania Dutch. The new boundaries seemed good, based on past results, for a Democratic majority of 2000 to 3000. The Republicans could not reverse the gerrymander as legislative elections would not be held until 1891, but they could throw all their energies into the district, as the McKinley Tariff was a main theme of the Democratic campaign nationwide, and there was considerable attention paid to McKinley's race. The Republican Party sent its leading orators to Canton, including Blaine (then Secretary of State), Speaker Reed and President Harrison. The Democrats countered with their best spokesmen on tariff issues. McKinley tirelessly stumped his new district, reaching out to its 40,000 voters to explain that his tariff was framed for the people ... as a defense to their industries, as a protection to the labor of their hands, as a safeguard to the happy homes of American workingmen, and as a security to their education, their wages, and their investments ... It will bring to this country a prosperity unparalleled in our own history and unrivalled in the history of the world." Democrats ran a strong candidate in former lieutenant governor John G. Warwick. To drive their point home, they hired young partisans to pretend to be peddlers, who went door to door offering 25-cent tinware to housewives for 50 cents, explaining the rise in prices was due to the McKinley Tariff. In the end, McKinley lost by 300 votes, but the Republicans won a statewide majority and claimed a moral victory.

Q: who was defeated for re-election?
A: In 1878, McKinley faced election in a redrawn 17th district; he won anyway, causing Hayes to exult,

Q: what does that mean?
A: McKinley lost

Q: what did he go on to do instead?
A: unknown
what was his greatest accomplishment mentioned in the article?
Democrats ran a strong candidate in former lieutenant governor John G. Warwick. McKinley faced election in a redrawn 17th district; he won anyway, causing Hayes to exult, "Oh, the good luck of McKinley! He was gerrymandered out and then beat the gerrymander! Recognizing McKinley's potential, the Democrats, whenever they controlled the Ohio legislature, In 1878, McKinley faced election in a redrawn 17th district; he won anyway, McKinley spent the winter substituting for a commissary sergeant who was ill, and in April 1862 he was promoted to that rank.
McKinley spent the winter substituting for a commissary sergeant who was ill, and in April 1862 he was promoted to that rank.