HIV is spread mainly by: Having sex with someone who has HIV without using protection or taking medicines to prevent or treat HIV.