The ketogenic diet is a dietary therapy used to treat refractory epilepsy in children. The diet contains a high percentage of fat and a low percentage of carbohydrate, and the food will be reasonably rich in protein, trace elements, and vitamins, and it is a diet formulated to treat epilepsy in children and to reduce the recurrence rate of epilepsy. Most children with epilepsy can be significantly improved by ketogenic diet therapy, and a small number of sick children can control their seizures. The use of ketogenic diet therapy for children with epilepsy works better than the new anti-epileptic drugs, and the diet therapy does not cause any harm to the child’s body and does not aggravate the mental burden, which is a more common clinical method. The ketogenic diet has a strict food matching ratio, requires abstinence from food, and must be adhered to for a long time to get the best results.