Unprotected sexual contact, sharing needles or syringes with an infected individual, and transmission from mother to child during childbirth or breastfeeding are the main ways that HIV is spread.