Earwax, also known as cerumen, is a brown, gray, or yellowish waxy substance. It protects the skin of the ear canal, assists in cleaning and lubrication, and also provides some protection against bacteria, fungi, insects, and water. Wax usually passes out of the ears harmlessly, but sometimes too much can build up and block the ears.