These findings provide mechanistic insight into sulfhydration of disulfide bonds on NMDAR by PDI, and suggest that PDI may represent a target of potential therapeutics for epilepsy, which avoids a possible side effect on physiological receptor functionality. Here, P4HB is linked to epilepsy.