HIV (Human Immunodeficiency Virus) is a virus that attacks the body's immune system, specifically the CD4 cells (T cells), which are crucial for fighting infections. If untreated, HIV can lead to the disease AIDS (Acquired Immunodeficiency Syndrome). On the other hand, tuberculosis is a bacterial infection caused by Mycobacterium tuberculosis, primarily affecting the lungs but can spread to other organs.