HIV infection is primarily caused by the human immunodeficiency virus (HIV), which attacks the body's immune system, specifically the CD4 cells (T cells). The virus is transmitted through body fluids, including blood, semen, vaginal fluids, rectal fluids, and breast milk. Common modes of transmission include unprotected sexual contact with an infected person, sharing needles or syringes, and from mother to child during childbirth or breastfeeding. Certain behaviors and environments, such as having multiple sexual partners or engaging in intravenous drug use, can increase the risk of HIV infection.