Some people may have inherited an immune system problem from their parents. Normally, the immune system protects the body from diseases and infections. It does this by killing harmful substances, such as germs, that enter the body.