Abstaining from sex is the most effective way to prevent STDs.