Condoms are made from very thin latex (rubber), polyisoprene or polyurethane, and are designed to stop pre-cum or cum from coming into contact with your sexual partner.
When condoms are used correctly during anal, vaginal and oral sex, they help to protect against STIs (sexually transmitted infections).