Our immune system defends the body from infections and diseases. The functioning of our immune system is determined by multiple factors, including our genetic makeup, our lifestyle, our diet and the environments that we have been exposed to over the years.