Different types of immune cells have distinct roles in immune system modulation. For instance, T cells can be either activated to attack pathogens or regulated to prevent autoimmunity. Macrophages can switch from a pro-inflammatory state to an anti-inflammatory state, depending on the signals they receive.