Atrial fibrillation (Afib) is an irregular and often rapid heartbeat that originates in the heart’s upper chambers (atria).