Expectorants are used to treat coughs that produce mucus ("wet coughs"). They work by thinning and loosening the mucus in your lungs, making it easier to cough up and clear out. These medications come in different forms, including oral pills and syrups. Examples include immediate-release guaifenesin (Mucinex, Geritussin, Robafen) and extended-release guaifenesin (Mucinex ER). You can choose the form that best fits your needs.