The human immunodeficiency virus (HIV) targets the immune system and weakens people's defense against many infections and some types of cancer that people with healthy immune systems can more easily fight off. As the virus destroys and impairs the function of immune cells, infected individuals gradually become immunodeficient. Immune function is typically measured by CD4 cell count.