Read our disclosure policy. Atrial fibrillation (or afib) occurs when the function of the four chambers of the heart get out of step, producing irregularities in heartbeat. In addition to well-documented causes of atrial fibrillation, recent research has found a number of ways this condition can occur. Fortunately, some of these recently found causes are quite preventable.