How does HIV weaken the immune system?

After the window period is over, the virus start destroying the body's immune system. At this stage, the presence of HIV in the body presents with some symptoms in the form of many opportunistic infections like flu, fever, diarrhea or tuberculosis. Most of them get cured after treatment. But the disease goes on progressing in the body rapidly depending on personal hygiene, habits and nutritional status.