Ondansetron, sold under the brand name Zofran among others, is a medication used to prevent nausea and vomiting caused by cancer chemotherapy, radiation therapy, migraines or surgery. It is also effective for treating gastroenteritis. It can be given orally (by mouth), intramuscularly (injection into a muscle), or intravenously (injection into a vein)