Union soldier William Johnson, 23, stands on the gallows moments before his execution for the attempted rape of the wife of a rebel soldier during the Siege of Petersburg. Roughly 500 soldiers were executed on both side during the American Civil War, most for desertion (Virginia, 1864).