Answer
General George Pickett ordered the execution of 22 deserters in February 1864, as a deterrent to others who might consider deserting. The executions were carried out in public, and Pickett made a point of attending them in person. This action was controversial at the time, but Pickett believed that it was necessary to maintain discipline in the army.