HIV (human immunodeficiency virus) is a virus that attacks the immune system. You can get HIV during sex (vaginal, anal, or oral sex) with someone who has it. You can get it if you're sexually assaulted. You can also get it if you share a needle, a syringe, or other drug equipment.
If you think you may have been exposed to HIV, see a doctor right away. There is treatment that can help.
The treatment is called post-exposure prophylaxis (PEP). It's medicine that can help prevent you from getting HIV.
Current as of: May 1, 2026
Author: WebMD Ignite Staff Clinical Review Board All WebMD Ignite education is reviewed by a team that includes physicians, nurses, advanced practitioners, registered dieticians, and other healthcare professionals.
Clinical Review Board All WebMD Ignite education is reviewed by a team that includes physicians, nurses, advanced practitioners, registered dieticians, and other healthcare professionals.
This information does not replace the advice of a doctor. WebMD Ignite, disclaims any warranty or liability for your use of this information. Your use of this information means that you agree to the Terms of Use. Learn how we develop our content.