In this drawing a comet approaches Earth. Notice the volcanoes, too. Volcanoes and comets contribute to Earth's changing atmosphere. Courtesy of JPL/NASA.
JPL/NASA