This is an open randomized controlled study in children with mental retardation and refractory epilepsy in which treatment with ketogenic diet (KD) is compared with treatment with the antiepileptic drug (AED), not tried by the patient before, which we consider to be the most appropriate AED for the patient.