Valproic acid is an anticonvulsant and mood stabilizer used to treat epilepsy, bipolar disorder, and prevent migraines. It increases GABA in the brain to help reduce seizures. Common side effects include drowsiness and nausea, but it also has serious risks like liver toxicity and is not recommended during pregnancy due to potential birth defects.