Immunodeficiency occurs when the immune system is less active than normal, resulting in recurring and life-threatening infections.