Some essential oils have antibacterial, antiviral, and pain-relieving properties that might be able to treat an ear infection. For example, tea tree oil, garlic oil, and possibly basil oil can help reduce ear swelling, pain, and discharge. However, these oils are not safe for everyone to use. It may be a good idea to consult your healthcare provider before using any natural treatment, including essential oils.