Condoms serve as a barrier method to prevent the exchange of bodily fluids during intercourse. This is crucial because many STIs are transmitted through fluids that contain infectious agents. Condoms significantly reduce the risk of infections like gonorrhea, chlamydia, and HIV.