The best way to prevent STDs (Sexually Transmitted Diseases) is to practice safe sex using condoms and other barrier methods and limit the number of sexual partners.