The results showed that consuming thymoquinone from the fetal stage can prevent chemical‐induced ulcerative colitis in adulthood by suppressing the JNK signaling pathway based on its antioxidant properties. The gene discussed is MAPK8; the disease is ulcerative colitis.