The three major functions of the immune system are destroying pathogens, destroying toxins, and taking care of cells that could harm the body, for instance, cancer cells.