Sputum, also known as phlegm, is a thick type of mucus made in your lungs. If you have an infection or chronic illness affecting the lungs or airways, it can make you cough up sputum. Sputum is not the same as spit or saliva.