This photo was among the first images taken by the Atmospheric Imaging Assembly on NASA's Solar Dynamics Observatory satellite.

A mesmerizing new video showcases the sun's life over three years, stitched together from gorgeous snapshots taken by a NASA spacecraft in orbit around our nearest star.

The amazing new video of the sun is made up of photos captured by NASA's Solar Dynamics Observatory (SDO) — two images a day for three years. The eye-catching images offer an unprecedented glimpse of the daily commotion waxing and waning on the surface of the sun.

SDO's Atmospheric Imaging Assembly records an image of the sun every 12 seconds in 10 different wavelengths, according to NASA officials. The images seen in the video are in the extreme ultraviolet range.

"In this wavelength it is easy to see the sun's 25-day rotation as well as how solar activity has increased over three years," agency officials said in a statement.

In the video, the size of the sun appears to subtly fluctuate. These changes are caused by the variation over time in the distance between SDO and the sun. Despite these tiny variations, the shots are fairly stable and consistent.

With SDO maintaining this steady and unbroken gaze, heliophysicists regularly observe the sun's active regions, and have been able to watch solar storms as they occur. By closely monitoring changes in the sun's activity, researchers can catch solar flares and other major space weather events in the act.

"SDO's glimpses into the violent dance on the sun help scientists understand what causes these giant explosions — with the hopes of some day improving our ability to predict this space weather," NASA officials said.

NASA's Solar Dynamics Observatory was launched in February 2010 and is equipped with a suite of instruments to stare at the sun for 24 hours a day, seven days a week. This type of uninterrupted coverage allowed scientists to monitor the star as it ramps up toward a period of solar maximum this year in its regular 11-year cycle of activity.

Follow Denise Chow on Twitter @denisechow. Follow us @Spacedotcom, Facebook or Google+. Originally published on SPACE.com.