Hamilton served with great gallantry in the Mexican War, and was brevetted first lieutenant in 1846 and captain in 1847. From 1847 until 1854, he was aide-de-camp to Lieutenant General Winfield Scott. In 1854, he wrote A History of our National Flag and on May 31, 1855, he resigned from the Army. During the War, he was wounded twice, once by a ball in the stomach and once by a lance which went completely through his chest, piercing his lung. Hamilton became an original member of the Aztec Club of 1847.
Upon the outbreak of the Civil War, he left his crops and volunteered as a private in the Seventh Regiment, New York National Guard. He worked on the staff of Gen. Benjamin Butler and was rapidly promoted, becoming a lieutenant colonel on the staff of General Scott as military secretary, and renewing his acquaintance with Gen. William T. Sherman He was promoted to brigadier general of volunteers in November 1861 and served as a staff officer in the Department of the Missouri. At the Battle of Island Number Ten, Hamilton led the 2nd Division in the Army of the Mississippi. He was transferred to command the 3rd Division throughout much of the Siege of Corinth. Toward the close of that campaign Hamilton was elevated to command the Right Wing of the Army of the Mississippi, consisting of the 3rd and 4th Divisions. In September 1862, he was selected for promotion to major general but this promotion was never confirmed. In 1863 he was compelled to resign, due to a prolonged illness. President Lincoln, with whom he had maintained a correspondence during the war, regretfully accepted the resignation. After the war, he joined the New York Commandery of the Military Order of the Loyal Legion of the United States.
Later career
He returned to his farm in Connecticut for three years and then moved back to New York City. From 1871 until 1873, he was hydrographic engineer, in the Department of Docks, New York City. From 1873 until 1875, he was superintendent of yards, and subsequently, owing to ill health, lived in retirement. In 1874, his son, Robert Ray Hamilton, on a trip west, had a jacket commissioned by the CreeMetis people, a Native American tribe, for Hamilton. On June 4, 1877, he delivered an address in front of the New York Historical Society, that was later published into a book, Our National Flag, the Stars and Stripes, Its History in a Century. In 1889, he wrote to The New York Times, calling for a return to civility and grace in allowing foreigners to compliment the United States and its leaders who have departed.
Personal life
On April 3, 1850, Hamilton married Cornelia Ray in New York City. She was the daughter of Robert Ray, a merchant, and Cornelia Prime.
Schuyler Hamilton Jr., a well known architect, who married Gertrude Van Cortlandt Wells, daughter of Alexander Wells and later the Baroness de Graffenried.
Charles Althrop Hamilton, who died aged 17
On July 11, 1886, several years after his first wife's death, he married Louisa Francis Paine Allen at the Park Hotel in Manhattan. On March 18, 1903, he died at his residence, 24 West 59th Street in New York City, after having been invalid for several years.
Descendants
Hamilton's grandchildren included: Schuyler Van Cortlandt Hamilton, Gertrude Ray Hamilton, and Violet Loring Hamilton.