Human immunodeficiency virus (HIV) is the virus that causes AIDS. When a person becomes infected with HIV, the virus attacks and weakens the immune system. As the immune system weakens, the person is at risk of getting life-threatening infections and cancers. When that happens, the illness is called AIDS. Once a person has the virus, it stays inside the body for life.