A condom is a thin covering that fits over a hard penis. It decreases the risk of pregnancy and STIs by creating a barrier that stops sperm and body fluids from passing between partners.
With typical use (not following exact directions) a condom is 82% effective. With perfect use a condom is 98% effective at preventing pregnancy. Condoms give good protection from STIs and HIV.