By binding to SCN1B, VPA affects voltage-gated sodium channel function; thereby blocking propagation of action potentials and preventing epilepsy. This evidence concerns the gene SCN1B and epilepsy.