Phlegm is a thick, sticky substance that is produced by the respiratory system. It is also known as mucus and when you cough it up, it is called sputum. The body produces about one liter of phlegm every day, but when you have an infection, the production can increase.