Coronary artery disease and heart failure are the two main causes of atrial fibrillation. But there are several other medical conditions that can cause atrial fibrillation, including rheumatic heart disease, hypertension and diabetes.