In summary, our results demonstrated that iron deficiency and iron overload led to downregulation of intestinal barrier and antioxidant marker genes in jejunum and promoted CD8+ T cell differentiation in the jejunum and MLN of pigs, disrupting gut health. The gene discussed is CD8A; the disease is Iron deficiency anemia.