McKinley enlisted as a private in the newly formed Poland Guards in June 1861, which was consolidated into the 23rd Ohio Infantry. Just before the war’s end, McKinley received his final promotion, a brevet commission as major.