Abstract Background and Aims Patients with chronic kidney disease (CKD) develop bleeding and thromboembolic tendencies, so the indication for the use of anticoagulants for atrial fibrillation (AF) is difficult. AF is the most common chronic cardiac arrhythmia, and thromboembolism and ischemic stroke in particular are the main complications. In recent years, new oral anticoagulants (rivaroxaban) have been developed and have shown superiority over classic anti-vitamin K anticoagulants in preventing the risk of stroke, systemic embolism and bleeding. Aim is to evaluate the safety parameters of rivaroxaban in patients with stage 4 chronic kidney disease (CKD) or a transient sustained decrease in glomerular filtration rate (GFR) to 15–29 ml/min/1,73 m2 in the presence of atrial fibrillation (AF). Method Multicenter prospective randomized study that included patients from cardiology departments in 2019. Of 5448 hospitalized patients, 109 (2%) patients with AF and CKD stage 4 or a sustained decrease in GFR to 15-29 ml/min/1.73 m2 were randomized in a 2:1 ratio to rivaroxaban 15 mg/day (n=73) or warfarin (n=36). Primary endpoint: development of large, small and small clinically significant bleeding according to the BARC (Bleeding Academic Research Consortium) and ISTH (International Society on Thrombosis and Hemostasis) scales. The average follow-up period is 12 months. Results Patients taking warfarin were significantly more likely to develop minor bleeding according to BARC scales (n=26 (72.2%) versus n=31 (42.4%), p<0.01) and ISTH (n=22 (61.1%) versus n=27 (36.9%), p<0.01) and all clinically significant (minor clinically significant and major) bleeding according to the ISTH scale [n=10 (27.7%) versus n=8 (10.9%), p=0.03]. The number of readmissions was 32 (43.8% of patients) in the rivaroxaban group, 17 (47.2% of patients) in the warfarin group (p=0.57), of which 12 (37.5%) and 7 (41.1%) (in the rivaroxaban and warfarin groups, respectively) - for urgent reasons (p=0.96). A significant improvement in the dynamics of creatinine levels, GFR (according to CKD-EPI) in the rivaroxaban group was revealed. Conclusion The study provides evidence of a favorable safety profile for rivaroxaban compared with warfarin in patients with AF and advanced CKD.