This medication is used to treat nausea and vomiting that can happen due to surgery or certain stomach/intestinal problems (such as gastroenteritis). Treating vomiting quickly can keep you from getting dehydrated. Trimethobenzamide belongs to a class of drugs known as antiemetics.