Xarelto is a medication that contains the active ingredient rivaroxaban, which belongs to a class of drugs known as anticoagulants or blood thinners. Xarelto works by helping to prevent the formation of harmful blood clots in your blood vessels, reducing the risk of stroke, deep vein thrombosis (DVT), and pulmonary embolism. This medication is suitable for individuals who need to lower their risk of blood clots due to conditions like atrial fibrillation, recent hip or knee replacement surgery, or deep vein thrombosis.