The large number of different syndromes and seizure types together with an interindividual variable response to antiepileptic drugs (AEDs) make the treatment of epilepsy challenging. Fortunately, the last few years have been characterized by a huge interest in epilepsy genetics and two methods, genome-wide analyses and next-generation sequencing, have definitely given the possibility to write a new chapter in the book of treatment of epilepsy, the chapter on precision medicine. Epilepsy offers a good opportunity for the personalization of therapy if we consider that at least one third of epileptic patients do not achieve complete seizure control with the currently available pharmacological treatments, treatment is still often empirical and precise therapy, based on the pathogenesis and the mechanism of each AED is not generally possible because this mechanism often remains incompletely known. In addition, new drugs are often not targeted but developed using in vivo seizure models, to be potentially used by the largest number of patients. This method leads to a therapy aimed at treating the symptoms and the seizures rather than the single pathogenic mechanism of each seizure type or syndrome. In this narrative review, we summarize the established evidence regarding pharmacogenomics in epilepsy and discuss the basis of precision medicine