During WWI, hundreds of soldiers were executed for desertion or cowardice, often suffering from 'shell shock.' These harsh punishments served as warnings, and many were later pardoned.