Parts of the northern U.S. and Canada were treated to a rare overnight view of the aurora borealis over the weekend, and fortunately for the rest of us, cameras were ready to capture the stunning sights.

Time-lapse videos and photos of the natural phenomena, also called the northern lights, were posted to social media early Monday, showing bright ribbons of light in the skies above Vermont, Michigan, New Hampshire and parts of Canada.

A geomagnetic storm precipitated by a solar flare on Friday caused the spectacle, according to the National Oceanic and Atmospheric Administration’s Space Weather Prediction Center.

“Aurora may be visible as low as New York to Wisconsin to Washington state,” the weather center announced Sunday morning on Twitter.

Unfortunately for many stargazers, the storm’s geomagnetic activity was said to have decreased somewhat by Sunday night. Cloud coverage also diminished chances of seeing the lights.

A post shared by Nicole Karkic (@nicolekarkic) on Jul 17, 2017 at 5:43am PDT

Nonetheless, a number of lucky shutterbugs were still able to capture the show, including in Mackinaw City, Michigan, where photography company D3 Imagery captured the northern lights shimmering over the Straits of Mackinac (see above video).

Overall, the phenomena yielded a treasure trove of great views.

A post shared by Mayito Photography (@mayitophotography) on Jul 16, 2017 at 4:49pm PDT

A post shared by Collin Pierson (@collinpierson) on Jul 17, 2017 at 6:23am PDT

A post shared by Corey McKean (@cmckean23) on Jul 17, 2017 at 6:18am PDT

Not much of a show last night. I was still able to get a little something! Chocorua Lake, NH#Auroraborealis #newhampshire pic.twitter.com/RNpAF4YqQt — John R McCarthy (@JRMcCarthyPhoto) July 17, 2017

A post shared by Sam Dean (@sdeanphotos) on Jul 17, 2017 at 6:21am PDT

A post shared by Donovan Dueck (@donovandueck) on Jul 17, 2017 at 5:44am PDT

A post shared by Nicholas Madden (@nicholaswmadden) on Jul 17, 2017 at 5:48am PDT