Andrew Porter (July 10, 1820 - January 3, 1872) was an American army officer who was a brigadier general in the Union Army during the American Civil War. He was an important staff officer under George B. McClellan during the 1862 Peninsula Campaign, serving as the Provost Marshal of the Army of the Potomac.Porter was born in Lancaster, Pennsylvania, on July 10, 1820. He was a grandson of Revolutionary War officer Andrew Porter and a second cousin of Mary Todd Lincoln.  He attended the United States Military Academy at West Point, New York, for six months in 1836 and 1837. He served in the Mexican-American War as a first lieutenant in the 1st Mounted Rifles. Within a year, he was promoted to captain and cited for gallantry, being brevetted two grades to lieutenant colonel.
 Porter spent the next fourteen years serving at various posts and forts on the frontier. He fought a duel in Texas with future Confederate general James J. Archer, whose second was Thomas J. Porter in 1862 Mathew Brady photo.On the outbreak of the Civil War he was serving as a colonel of the 16th U. He was appointed as a brigadier general in May 1861, and commanded the 1st Brigade, 2nd Division at First Battle of Bull Run.
He served as Provost Marshal of the District of Columbia, and was then appointed as Provost Marshal General of the Army of the Potomac in the Peninsula Campaign. In April 1864 he mustered out for health reasons. A photo of Porter by Mathew Brady circa 1862 survives. Porter moved to Paris, France, in an attempt to improve his health. Reflecting a post-Civil War pattern of naming many Washington, DC streets in newly developed areas in the Capital after Union generals, an east-west street in the Northwest quadrant is named Porter Street, NW.