Atrial fibrillation (AF) is a type of arrhythmia or abnormal heart rhythm. AF occurs when the heart’s upper chambers (the atria) beat irregularly. This can cause the heart to beat less effectively, leading to blood clots, stroke, and other heart-related problems.