The spectacular Comet Pan-STARRS emerged in the western sunset sky, last week, and could be seen with the naked eye in parts of the Northern Hemisphere.

Before dipping inside Mercury's orbit, the comet passed within 100 million miles of Earth. We humans had our sights set on capturing its entrancing journey. So far we've seen photos and a black-and-white video capturing the comet, Earth and Mercury together. However new footage from the Solar Terrestrial Relations Observatory gives us a better view of the commotion the comet caused at the doorstep of our planet.

The video above is a compilation of photos captured by the Heliospheric Imager (HI), an instrument that looks to the side of the sun to watch coronal mass ejections (giant bursts of solar wind and magnetic fields). As Comet Pan-STARRS flew around the sun from March 10 to 15, HI took three images and stitched them together.

SEE ALSO: 20 Space Wallpapers That Are Out of This World

There are three main components in this video: Earth, which is the small speck on the right side of the screen; Comet Pan-STARRS moving through the middle; and our Sun, the fiery orb on the left. As the comet soars on screen, you'll see quick bursts, which represent those coronal mass ejections.

Comet Pan-STARRS generated a lot of buzz as it whizzed around Earth, but it's not the biggest comet astronomers are watching. This November, Comet ISON will shine as bright as a full Moon in broad daylight when it passes through the Sun's atmosphere.

BONUS: Photos of Spectacular Auroras

10 Amazing Auroras Caught on Camera

Images and video courtesy of NASA/GSFC/STEREO