Most people have vomited at least once in their lives. Though unpleasant, vomiting is often the body's way of trying to get rid of harmful toxins. There are many different causes of vomiting. The healthcare provider may ask other questions, which can help narrow the list of possible causes.
Any illness can cause vomiting, especially in infants.
For instance, ear infections are a common cause of vomiting in infants. The flu can also cause vomiting. Sometimes, no cause can be found. Prevention depends on the cause. For instance, avoiding alcohol can prevent vomiting due to alcohol.