Your immune system is a complex network of cells, tissues, and organs that work together to defend against germs. It helps your body to recognize these "foreign" invaders. Then its job is to keep them out, or if it can't, to find and destroy them.
If your immune system cannot do its job, the results can be serious. Disorders of the immune system include
NIH: National Institute of Allergy and Infectious Diseases