Atrial fibrillation and heart failure are two different diseases. The treatment of atrial fibrillation is divided into medication and surgery, and the treatment of heart failure is divided into general treatment and medication. 1. Atrial fibrillation: the mechanism of occurrence is unknown, it is a common arrhythmia in adults, mostly manifested as fatigue, palpitation, fainting, etc. The treatment can be divided into medication and surgery. The treatment can be divided into medication and surgery, the medication includes β-blocker, verapamil and so on to control the ventricular rate, warfarin and so on to prevent thromboembolism, and the surgery includes electric cardioversion, radiofrequency ablation and so on. 2. Heart failure: Heart failure is a disease of heart dysfunction due to various reasons, mainly manifested as dyspnea, fatigue, edema, cough, etc. The general treatment is acute attack, which needs to be treated by a doctor. General treatment for acute attacks, bed rest, legs down, low-salt and low-fat diet, edema with shortness of breath obvious patients need to limit the amount of water. Drug therapy: including the control of heart failure symptoms of treatment, commonly used furosemide, torasemide and other diuretics. Drugs to improve the prognosis of heart failure and prevent sudden cardiac death include ACEIs such as perindopril or ARBs such as valsartan, ARNIs such as sacubitril valsartan, beta-blockers such as metoprolol, aldosterone receptor antagonists such as spironolactone, and dagliflozin. Of course if the heart failure is due to atrial fibrillation, current clinical evidence recommends radiofrequency ablation. Patients diagnosed with atrial fibrillation and heart failure should go to the hospital and follow the doctor’s instructions for standardized treatment.