These Galvanized Yankees were Confederate prisoners organized into new Union companies used to man frontier forts deep in Indian-traversed territories. They were never used to fight fellow Confederates, as they may have refused to fight their former allies. Most Galvanized Yankees probably enlisted in such units to escape the grim conditions in prison camps.
