Rivaroxaban is a prescription medication used to treat and prevent a number of blood clotting concerns, as well as a variety of heart and vascular conditions (such as stroke and coronary artery disease). It is also prescribed to patients who have recently undergone hip and knee surgery to prevent blood clots from forming in the lower body.