Andrew Gordon Magrath (February 8, 1813 – April 9, 1893) was the last Governor of South Carolina under the Confederate States of America, a United States district judge of the United States District Court for the District of South Carolina and a Confederate District Judge for the District of South Carolina.