Earwax, or cerumen, is a natural substance produced by the glands in your ear canal. Its job is to protect your ears by trapping dirt, dust, and other foreign particles, as well as preventing infections.…