Blood–brain barrier (BBB) dysfunction has been suggested to play an important role in epilepsy. However, the mechanism mediating the transition from cerebrovascular damage to epilepsy remains unknown. Here, we report that endothelial cyclin-dependent kinase 5 (CDK5) is a central regulator of neuronal excitability. Endothelial-specific Cdk5 knockout led to spontaneous seizures in mice. Knockout mice showed increased endothelial chemokine (C-X-C motif) ligand 1 (Cxcl1) expression, decreased astrocytic glutamate reuptake through the glutamate transporter 1 (GLT1), and increased glutamate synaptic function. Ceftriaxone restored astrocytic GLT1 function and inhibited seizures in endothelial Cdk5 -deficient mice, and these effects were also reversed after silencing Cxcl1 in endothelial cells and its receptor chemokine (C-X-C motif) receptor 2 (Cxcr2) in astrocytes, respectively, in the CA1 by AAV transfection. These results reveal a previously unknown link between cerebrovascular factors and epileptogenesis and provide a rationale for targeting endothelial signaling as a potential treatment for epilepsy.