When volcanoes erupt, they can release into the atmosphere a number of different gases initially stored in their magma, such as carbon dioxide, hydrogen sulfide, and sulfur dioxide. These kinds of gases can have a big influence on Earth’s atmosphere, even at distances hundreds to thousands of kilometres away.