Rivaroxaban, sold under the brand name Xarelto. Rivaroxaban blocks the activity of certain clotting substances in the blood. Rivaroxaban is used to prevent or treat a type of blood clot called deep vein thrombosis (DVT), which can lead to blood clots in the lungs (pulmonary embolism). A DVT can occur after certain types of surgery. Rivaroxaban is also used in people with atrial fibrillation to lower the risk of stroke caused by a blood clot.