In 1864 Wise commanded a brigade in the Department of North Carolina &amp; Southern Virginia. His brigade defended Petersburg and was credited with saving the city at the First Battle of Petersburg and to an extent at the Second Battle of Petersburg. Wise commanded a brigade in the Army of Northern Virginia during the final stages of the Siege of Petersburg. He was with Robert E. Lee at Appomattox Court House, where he fought bravely but urged Lee to surrender. With other Confederate officials, he was taken prisoner after the surrender.