Acute gastroenteritis is one of the most common complaints in children referred to the emergency department. In the disease, vomiting can lead to dehydration, electrolyte disturbances, and even hospitalization. Ondansetron is one of the drugs used to treat vomiting. The aim of this study is to compare the effect of ondansetron in reducing vomiting by oral and intramuscular administration methods. This study is a randomized double-blind clinical trial. In the study, 100 children aged 1-10 years old with acute gastroenteritis that referred to Bahrami Children’s Hospital in Tehran, were enrolled. The inclusion criteria: Children aged 1 to 10 years with acute gastroenteritis and mild to moderate dehydration. The exclusion criteria: The presence of any chronic disease or alarm sign or symptoms such as headache or abdominal distention. The children were divided in two groups in a simple randomized method. The first group was given oral Ondansetron (manufactured by Iranian company, World Health Company) with dose 0.2 mg/kg. The second group received intramuscular injection of ondansetron (manufactured by Iranian company, Tehran Chemistry Company) with dose 0.2 mg/kg. Oral fluid therapy begins 30 minutes after receiving the drug. If the child has been tolerated, the treatment is successful and he/she is monitored to up four hours in the emergency department. If there was no vomiting after 4 hours, they will be discharged. Patients were followed up by telephone 48 hours after starting treatment. During this study, they are evaluated for the side effects of ondansetron, including vomiting, headache, and tachycardia. If they had no oral tolerate, they would be hospitalized and treated intravenously rehydration.