What is ondansetron? Ondansetron is a medicine that is used to treat or prevent nausea (feeling sick, upset stomach) and vomiting (throwing up). Nausea and vomiting may be due to cancer medicines (chemotherapy), radiation treatments, or medicines used for operations (surgery).