Expectorants are a type of medicine that can loosen mucus or phlegm in the lungs. This makes it easier to cough them up.