Distinction between primary versus secondary immunodeficiencies are based on, respectively, whether the cause originates in the immune system itself or is, in turn, due to insufficiency of a supporting component of it or an external decreasing factor of it.

The treatment of primary immunodeficiencies depends on the nature of the defect, and may involve antibody infusions, long-term antibiotics and (in some cases) stem cell transplantation.The characteristics of lacking and/or impaired antibody functions can be related to illnesses such as X-Linked Agammaglobulinemia and Common Variable Immune Deficiency [9]

There are a large number of immunodeficiency syndromes that present clinical and laboratory characteristics of autoimmunity. The decreased ability of the immune system to clear infections in these patients may be responsible for causing autoimmunity through perpetual immune system activation.[10]

The cause of immunodeficiency varies depending on the nature of the disorder. The cause can be either genetic or acquired by malnutrition and poor sanitary conditions. Only for some genetic causes, the exact genes are known.[11] Although there is no true discrimination to who this disease affects, the genes are passed from mother to child, and on occasion from father to child. Women tend not to show symptoms due to their second X chromosome not having the mutation while men are symptomatic, due to having one X chromosome.[9]

Available treatment falls into two modalities: treating infections and boosting the immune system.

Prevention of Pneumocystis pneumonia using trimethoprim/sulfamethoxazole is useful in those who are immunocompromised.[12] In the early 1950s Immunoglobulin(Ig) was used by doctors to treat patients with primary immunodeficiency through intramuscular injection. Ig replacement therapy are infusions that can be either subcutaneous or intravenously administrated, resulting in higher Ig levels for about three to four weeks, although this varies with each patient.[9]

Prognosis depends greatly on the nature and severity of the condition. Some deficiencies cause early mortality (before age one), others with or even without treatment are lifelong conditions that cause little mortality or morbidity. Newer stem cell transplant technologies may lead to gene based treatments of
debilitating and fatal genetic immune deficiencies. Prognosis of acquired immune deficiencies depends on avoiding or treating the causative agent or
condition (like AIDS).