The function of the Immune System is to respond when pathogens enter the body. The Immune System is not responsible for exchanging oxygen and carbon dioxide, that is the job of the Respiratory System. It also does not provide structure for the body, that is the role of the Skeletal System. And finally, the Excretory System is responsible for the removal of waste.