Armies issued condoms to troops in the Second World War mainly to reduce sexually transmitted infections, which were a serious problem for fighting forces. Those infections meant men had to be treated and kept off duty, so commanders saw them as a threat to fighting strength.
The health problem
Sexually transmitted infections, then often called venereal disease, were a recurring problem among troops. The problem was worst for men who were moving between bases and countries or spending long periods away from home. An infected man needed treatment and time away from duty, and he could pass the infection on. Military leaders treated the problem as a matter of both health and discipline.
What condoms were meant to do
Condoms were one part of a wider approach. The aim was to lower infection rates. Armies usually combined them with other steps, such as instruction, medical checks and treatment, so that men who had been exposed could be checked and treated quickly.
How policies differed
Policies varied by country, unit and period. The United States Army issued condoms and set up prophylaxis stations, places where men could receive preventive treatment after risky contact. British and other forces also had prevention and treatment measures, though the details differed. The issue was controversial, and some people objected to it on moral grounds.
Where penicillin fits
Penicillin became widely available to Allied forces by 1944 and made treatment of some of these infections faster and more reliable. Penicillin changed treatment, but armies still stressed prevention.
Why the question still comes up
People often ask because the practice seems unusual today. It makes more sense as wartime health policy. Armies were trying to keep large numbers of men fit to fight, and sexually transmitted infections were one of the problems they tried to manage.