Ewing resigned his judgeship in 1862 to enter the military. He recruited the 11th Kansas Infantry and was elected as its first colonel. His regiment fought in James G. Blunt's division in the battles of Old Fort Wayne, Cane Hill, and Prairie Grove.