HIV is the virus that causes AIDS (acquired immunodeficiency syndrome). AIDS is the most advanced stage of HIV infection. HIV testing can detect HIV infection, but it can't tell how long a person has had HIV or if the person has AIDS. Why is HIV testing important?