In this study, we report that indoleamine 2,3-dioxygenase 1 (IDO1), a rate-limiting enzyme in tryptophan metabolism, plays a key role in epilepsy-associated depressive-like behavior. Here, IDO1 is linked to epilepsy.