The word diet first appeared in English in the 13th century. Its original meaning was the same as in modern English, “habitually taken food and drink.” But diet was used in another sense too in the Middle and early modern English periods to mean “way of living.” This is, in fact, the original meaning of diet’s Greek ancestor diaita, which is derived from the verb diaitasthan, meaning “to lead one’s life.” In Greek, diaita, had already come to be used more specifically for a way of living prescribed by a physician, a diet, or other regimen.

The ketogenic diet is not a benign, holistic, or natural treatment for epilepsy; as with any serious medical therapy, complications may result.[28] These are generally less severe and less frequent than with anticonvulsant medication or surgery.[28] Common but easily treatable short-term side effects include constipation, low-grade acidosis, and hypoglycaemia if an initial fast is undertaken. Raised levels of lipids in the blood affect up to 60% of children[38] and cholesterol levels may increase by around 30%.[28] This can be treated by changes to the fat content of the diet, such as from saturated fats towards polyunsaturated fats, and if persistent, by lowering the ketogenic ratio.[38] Supplements are necessary to counter the dietary deficiency of many micronutrients.[18]
There are many ways in which epilepsy occurs. Examples of pathological physiology include: unusual excitatory connections within the neuronal network of the brain; abnormal neuron structure leading to altered current flow; decreased inhibitory neurotransmitter synthesis; ineffective receptors for inhibitory neurotransmitters; insufficient breakdown of excitatory neurotransmitters leading to excess; immature synapse development; and impaired function of ionic channels.[7]
When you eat less than 50 grams of carbs a day, your body eventually runs out of fuel (blood sugar) it can use quickly. This typically takes 3 to 4 days. Then you’ll start to break down protein and fat for energy, which can make you lose weight. This is called ketosis. It's important to note that the ketogenic diet is a short term diet that's focussed on weight loss rather than the pursuit of health benefits. 
A computer program such as KetoCalculator may be used to help generate recipes.[47] The meals often have four components: heavy whipping cream, a protein-rich food (typically meat), a fruit or vegetable and a fat such as butter, vegetable oil, or mayonnaise. Only low-carbohydrate fruits and vegetables are allowed, which excludes bananas, potatoes, peas, and corn. Suitable fruits are divided into two groups based on the amount of carbohydrate they contain, and vegetables are similarly divided into two groups. Foods within each of these four groups may be freely substituted to allow for variation without needing to recalculate portion sizes. For example, cooked broccoli, Brussels sprouts, cauliflower, and green beans are all equivalent. Fresh, canned, or frozen foods are equivalent, but raw and cooked vegetables differ, and processed foods are an additional complication. Parents are required to be precise when measuring food quantities on an electronic scale accurate to 1 g. The child must eat the whole meal and cannot have extra portions; any snacks must be incorporated into the meal plan. A small amount of MCT oil may be used to help with constipation or to increase ketosis.[37]
For patients who benefit, half achieve a seizure reduction within five days (if the diet starts with an initial fast of one to two days), three-quarters achieve a reduction within two weeks, and 90% achieve a reduction within 23 days. If the diet does not begin with a fast, the time for half of the patients to achieve an improvement is longer (two weeks), but the long-term seizure reduction rates are unaffected.[44] Parents are encouraged to persist with the diet for at least three months before any final consideration is made regarding efficacy.[9]
The ketogenic diet is a mainstream dietary therapy that was developed to reproduce the success and remove the limitations of the non-mainstream use of fasting to treat epilepsy.[Note 2] Although popular in the 1920s and '30s, it was largely abandoned in favour of new anticonvulsant drugs.[1] Most individuals with epilepsy can successfully control their seizures with medication. However, 20–30% fail to achieve such control despite trying a number of different drugs.[9] For this group, and for children in particular, the diet has once again found a role in epilepsy management.[1][10]