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. 

Physicians of ancient Greece treated diseases, including epilepsy, by altering their patients' diet. An early treatise in the Hippocratic Corpus, On the Sacred Disease, covers the disease; it dates from c. 400 BC. Its author argued against the prevailing view that epilepsy was supernatural in origin and cure, and proposed that dietary therapy had a rational and physical basis.[Note 3] In the same collection, the author of Epidemics describes the case of a man whose epilepsy is cured as quickly as it had appeared, through complete abstinence of food and drink.[Note 4] The royal physician Erasistratus declared, "One inclining to epilepsy should be made to fast without mercy and be put on short rations."[Note 5] Galen believed an "attenuating diet"[Note 6] might afford a cure in mild cases and be helpful in others.[11]

The day before admission to hospital, the proportion of carbohydrate in the diet may be decreased and the patient begins fasting after his or her evening meal.[19] On admission, only calorie- and caffeine-free fluids[37] are allowed until dinner, which consists of "eggnog"[Note 8] restricted to one-third of the typical calories for a meal. The following breakfast and lunch are similar, and on the second day, the "eggnog" dinner is increased to two-thirds of a typical meal's caloric content. By the third day, dinner contains the full calorie quota and is a standard ketogenic meal (not "eggnog"). After a ketogenic breakfast on the fourth day, the patient is discharged. Where possible, the patient's current medicines are changed to carbohydrate-free formulations.[19]
Because people with type 2 diabetes are at an increased risk for cardiovascular disease, there’s a specific concern that the saturated fat in the diet may drive up LDL, or “bad,” cholesterol levels, and further increase the odds of heart problems. If you have type 2 diabetes, talk to your doctor before attempting a ketogenic diet. They may recommend a different weight-loss diet for you, like a reduced-calorie diet, to manage diabetes. Those with epilepsy should also consult their doctor before using this as part of their treatment plan.
The brain is composed of a network of neurons that transmit signals by propagating nerve impulses. The propagation of this impulse from one neuron to another is typically controlled by neurotransmitters, though there are also electrical pathways between some neurons. Neurotransmitters can inhibit impulse firing (primarily done by γ-aminobutyric acid, or GABA) or they can excite the neuron into firing (primarily done by glutamate). A neuron that releases inhibitory neurotransmitters from its terminals is called an inhibitory neuron, while one that releases excitatory neurotransmitters is an excitatory neuron. When the normal balance between inhibition and excitation is significantly disrupted in all or part of the brain, a seizure can occur. The GABA system is an important target for anticonvulsant drugs, since seizures may be discouraged by increasing GABA synthesis, decreasing its breakdown, or enhancing its effect on neurons.[7]
The Mayo Clinic Diet is a long-term weight management program created by a team of weight-loss experts at Mayo Clinic. The Mayo Clinic Diet is designed to help you reshape your lifestyle by adopting healthy new habits and breaking unhealthy old ones. The goal is to make simple, pleasurable changes that will result in a healthy weight that you can maintain for the rest of your life.