What causes black phlegm and snot? If you ever cough up black phlegm, see a doctor as soon as possible. The discoloration may be temporary, caused by exposure to smoke or dirt in the air, or it could be due to a respiratory infection. Black phlegm could also be caused by a more serious condition, such as lung cancer.