Which gas is removed from the atmosphere during photosynthesis?

A. hydrogen
B. oxygen
C. nitrogen
D. carbon dioxide