Atrial fibrillation is caused by erratic electrical impulses in the heart that originate from the pulmonary veins for intermittent cases and other areas for persistent cases. While researchers are still investigating the exact cause, some studies have found a genetic component as atrial fibrillation tends to run in families, suggesting genetics may play a role though the overall cause remains largely unknown.