The only sure way to avoid getting a sexually transmitted disease (STD) is to abstain from all intimate contact. For most people, that isn’t practical, but fortunately, STDs are largely preventable. Consistent and correct use of condoms helps, but they are not equally effective for all infections. Understanding how STDs are spread and taking appropriate precautions reduces the risk of STD transmission.