On Monday, a rare and beautiful thing happened: There was a dusting of snow on the red sand dunes of the Sahara.

The snow fell on the northern Algerian town of Ain Sefra, which is known as the "gateway to the desert."

Karim Bouchetata, an amateur photographer there, grabbed his camera and took a number of photos before the snow melted later that day. He uploaded them to Facebook, where the surreal images quickly went viral.

According to Gizmodo, the last "major" snowfall in Ain Sefra was in February 1979, when it snowed for all of half an hour. The town lies about 1,000 meters (just under 3,300 feet) above sea level near the Atlas Mountains.

"The snow fell in a region where summertime temperatures average 37°Celsius (99°Fahrenheit), though wintertime temperatures have been known to get down into the single digits Celsius (30s Fahrenheit). Such moisture is as rare as the cool temperatures, given that just a few centimeters (inches) of precipitation fall here in an entire year."

Researchers from the University of Texas at Arlington are learning to predict the weather in space and measure its impact on Earth. But it's a tricky science because space weather activity is tied to the chaotic behavior of the sun.