The results showed that sodium valproate can improve the depression-like and cognitive dysfunction of rats after chronic restraint stress by activating the JAK1/STAT3 pathway and inhibiting the activation of inflammatory factors. The gene discussed is JAK1; the disease is major depressive disorder.