Human: What are the best ways to treat an ear infection? Assistant: 
The best way to treat an ear infection is by using over-the-counter medications such as ibuprofen or acetaminophen, and warm compresses. You can also try home remedies like garlic, onion, and apple cider vinegar in a warm bath. If your child has an earache, you may want to consult with a doctor for advice on how to properly manage the condition.