What is the purpose of earwax?
Earwax protects and cleans the ear canal. It traps dust, dirt and germs before they can reach the eardrum, keeps the skin of the ear canal moist and helps protect against infections.
Earwax, called cerumen by doctors, is made by glands in the outer part of the ear canal. It is a mix of oils, sweat, dead skin cells and hair.
A self-cleaning system
The ear canal cleans itself. Skin in the canal slowly grows outward, like a conveyor belt, carrying old earwax toward the opening. Jaw movements from talking and chewing help.
Once it reaches the outer ear, the wax usually dries and falls out or is washed away.
Wet or dry
There are two main types of earwax. Wet earwax is sticky and yellow to brown, and is most common among people of African and European descent.
Dry earwax is gray and flaky, and is more common among people of East Asian descent. The type is controlled mainly by a single gene.
Cleaning advice
Doctors usually advise against pushing cotton swabs into the ear canal. They can push wax deeper and cause blockages or damage the eardrum.
If wax builds up and causes hearing problems or discomfort, a doctor or nurse can remove it safely.
Earwax also has a mildly acidic quality that discourages bacteria.
This answer is general information, not medical advice. For a personal health question, talk to a doctor.