How does the burning of fossil fuels contribute to climate change?

A. By increasing the soot and ash in the atmosphere
B. By increasing the amount of carbon dioxide in the atmosphere
C. By reducing the amount of fuel available for transportation
D. By directly giving off heat which is immediately causing the earth to warm up

B. By increasing the amount of carbon dioxide in the atmosphere