At the outbreak of the American Civil War, Cantwell joined up with the "Madison Guard" militia company, the first Wisconsin company enrolled in the Union Army.[1] They became Company E of the 1st Wisconsin Infantry Regiment. The 1st Wisconsin Infantry went east to Washington, D.C., and engaged in the Battle of Hoke's Run, but their three month enlistment expired in August 1861, and the unit returned to Wisconsin.[2]
Cantwell re-enlisted and was commissioned second lieutenant of Company C in the 12th Wisconsin Infantry Regiment in November 1861. He was promoted to first lieutenant six months later and served with the 12th Wisconsin Infantry through most of the rest of the war. He served in the western theater of the war, participating in the critical Vicksburg campaign, and the subsequent march with General William Tecumseh Sherman against Atlanta.[3] Cantwell also served as acting quartermaster of the brigade. He mustered out in January 1865 at the expiration of his three year enlistment.[4]
Postbellum career
After the war, he founded the Cantwell Printing Company, which he operated for 25 years. He was also involved with the Wisconsin Agricultural Society, the Dane County Agricultural Society, and the Wisconsin Historical Society. Cantwell served as Madison City Treasurer and on the Madison Common Council.[1]