LRP1, the low-density lipoprotein receptor 1, would be a novel candidate epilepsy gene according to our bioinformatic results and the animal study. In this study, we explored the role of LRP1 in Epilepsy and whether Beta-hydroxybutyrate, the principal ketone body of the ketogenic diet can treat epilepsy caused by LRP1 deficiency. UAS/GAL4 system was used to establish different genotype models. Flies were given Standard, High-sucrose, and ketone body food randomly. The bang-sensitive test was performed on flies and seizure-like behavior was assessed. Morphologic alteration of LRP1 defect in the brain was detected under GPF expression flies. We established global, astrocytic, and neuronal LRP1 knockdown flies. Whole body and glia LRP1 defect flies had a higher seizure rate compared to the control group in the behavior test. Ketone body decreased the seizure rate in behavior test in all LRP1 defect flies, compared to Standard and High sucrose diet. In morphologic experiments, we found that LRP1 deficiency caused partial loss of the ellipsoidal body and partial destruction of the fan-shaped body. Overexpression of glutamate transporter gene Eaat1 could mimic the ketone body effect on LRP1 deficiency flies. This study demonstrated that LRP1 defect globally or in astrocytes or neurons could induce epilepsy. The ketone body efficaciously rescued epilepsy caused by LRP1 knockdown. The results support screening for LRP1 mutations as discriminating conduct for individuals who require clinical attention and further clarify the mechanism of the ketogenic diet in Epilepsy, which could help Epilepsy patients making a precise treatment case by case.