American Civil War
Cobb joined the Confederate States Army in Summer 1861 and was commissioned as colonel of the 16th Georgia Infantry Regiment. He was promoted to brigadier general on February 13, 1862, and assigned command of a brigade in the Army of Northern Virginia. Between February and June 1862, Cobb represented the Confederate government in negotiations with Union commanders for an agreement on the exchange of prisoners of war. His efforts in these discussions contributed to the Dix-Hill Cartel accord reached in July 1862. Cobb commanded his brigade during the Peninsula campaign and Seven Days Battles, and during the Maryland campaign the brigade played a key role at the Battle of South Mountain, where it arrived at a critical time to delay a Union advance through Crampton's Gap but suffered heavy casualties in doing so. Cobb and his brigade subsequently fought at the Battle of Antietam.
In October 1862, Cobb was detached from the Army of Northern Virginia and sent to the District of Middle Florida. He was promoted to major general on September 9, 1863, and placed in command of the District of Georgia and Florida. Cobb suggested the construction of a prisoner-of-war camp in southern Georgia, a location thought to be safe from Union incursions. This led to the creation of Andersonville Prison. When Union army forces under Major General William T. Sherman invaded Georgia during the 1864 Atlanta campaign which was followed by Sherman's March to the Sea, Cobb opposed the invasions in command of the Georgia Reserve Corps. In the spring of 1865, with the Confederacy clearly waning, he was sent with his troops to Columbus, Georgia to assist in resisting Wilson's Raid. Cobb was subsequently defeated at the Battle of Columbus on, April 16, 1865.
During Sherman's March to the Sea, the Union general's army camped one night near Cobb's plantation. When Sherman discovered that the house he planned to stay in for the night belonged to Cobb, whom Sherman described in his Memoirs as "one of the leading rebels of the South, then a general in the Southern army", he dined in the plantation's slave quarters, confiscated Cobb's property and ordered the plantation burned, instructing his subordinates to "spare nothing."
In the final year of the war, Cobb unsuccessfully opposed attempts to enlist Black men into the Confederate army. In a letter he sent to Confederate States Secretary of War James Seddon on January 8, 1865, Cobb wrote: You cannot make soldiers of slaves, nor slaves of soldiers. The moment you resort to negro soldiers your white soldiers will be lost to you; and one secret of the favor with which the proposition is received in portions of the Army is the hope that when negroes go into the Army they will be permitted to retire. It is simply a proposition to fight the balance of the war with negro troops. You can’t keep white and black troops together, and you can’t trust negroes by themselves. It is difficult to get negroes enough for the purpose indicated in the President‘s message, much less enough for an Army. Use all the negroes you can get, for all the purposes for which you need them, but don’t arm them. The day you make soldiers of them is the beginning of the end of the revolution. If slaves will make good soldiers our whole theory of slavery is wrong but they won’t make soldiers. As a class they are wanting in every qualification of a soldier. Better by far to yield to the demands of England and France and abolish slavery, and thereby purchase their aid, than to resort to this policy, which leads as certainly to ruin and subjugation as it is adopted. Cobb surrendered to Union forces at Macon, Georgia on April 20, 1865.