This MR study suggests that the antihyperglycemic drug target gene ETFDH may increase the risk of epilepsy and that metformin is an inhibitor of the ETFDH gene. Here, ETFDH is linked to epilepsy.