These findings suggest that Keap1-Nrf2 system plays a key role in depression and that dietary intake of SFN-rich food during juvenile stages and adolescence can confer stress resilience in adulthood. Here, NFE2L2 is linked to depressive symptom measurement.