When someone's body can't protect itself from infection the way it should, they suffer from an immunodeficiency. Many patients being treated for cancer have immunodeficiencies.
Your immune system is the network of cells that works to fight infection throughout your body, and when it isn't functioning well, the result is immunodeficiency. The word is rooted in the Latin immunis, "exempt," and deficere, "to fail." In other words, immunodeficiency is a failure of the system that keeps you free from infections and illness. Various diseases, genetic conditions, and medications can result in this risky situation.