The immune system is there to protect the body from germs and other threats. An immune deficiency is when your immune system has a weaker response to those threats and it makes you less able to fight off infections.
It can happen as a result from medications or illness. It can also be present from birth which is a genetic disorder known as primary immune deficiency.