Human: What are the best ways to treat an ear infection? Assistant: 
The best way to treat an ear infection is to take antibiotics as prescribed by your doctor. You should also try using warm compresses on your ear, and avoid swimming in chlorinated water for at least 24 hours after taking the antibiotics. If the pain or discomfort gets too much, you can take ibuprofen or acetaminophen for relief.