In the late 1950s, research branches of the U.S. military began monitoring solar activity and space weather, the disturbances in Earth’s magnetic field and upper atmosphere that can interfere with radio transmissions, power lines and other technologies. By the ‘60s, a special branch of the U.S. Air Force’s Air Weather Service (AWS) was dedicated to monitoring the sun and watching out for the brief but powerful eruptions of radiation from the sun’s surface known as solar flares. A network of observers in the United States and abroad reported any activity to the North American Aerospace Defense Command (NORAD), a joint U.S.-Canadian organization charged with defending and controlling North American airspace.

These observation and forecasting operations seem to have paid off—big time—on May 23, 1967, when a powerful solar storm disrupted three Ballistic Missile Early Warning System (BMEWS) sites in the far Northern Hemisphere, used by the U.S. military to detect incoming Soviet missiles. During this period of the Cold War, the U.S. Air Force flew continuous alert aircraft armed with nuclear weapons, but the suspicion that the Soviet Union had tampered with its radar surveillance operations—considered an act of war—led commanders to put additional nuclear-equipped forces in a “ready to launch” status.

But the planes stayed on the ground, and nuclear war didn’t break out. Now, retired U.S. Air Force personnel have described what happened publicly for the first time in a new study accepted for publication in Space Weather, a journal of the American Geophysical Union (AGU). Contributing authors of the study include experts from the University of Colorado, Boulder, the National Oceanic and Atmospheric Administration (NOAA), Baylor University and Boston College.

As the new study reveals, researchers noticed a large group of sunspots—the dark, relatively cool areas on the sun’s surface that can produce solar flares—with particularly strong magnetic field in one area of the sun on May 18, 1967. (Strong solar flares can also be accompanied by eruptions of solar plasma called coronal mass ejections, or CMEs. These can cause even more damage, sparking geomagnetic storms that can jam power grids, among other technologies.)

On May 23, a solar radio observatory in Massachusetts reported the sun was emitting high levels of radio waves, while observatories in New Mexico and Colorado recorded a solar flare that was visible to the naked eye. NORAD’s Solar Forecast Center in Colorado Springs put out a bulletin announcing that a significant worldwide geomagnetic storm was forecast to occur within 36-48 hours. That same day, the three BMEWS sites in Alaska, Greenland and the United Kingdom all appeared to be jammed, causing the Air Force to go on high alert.

According to the study, the incident was “a near trip-wire in the tense political and military landscape of the time.” If the nuclear-armed planes had taken off, the study said, it would have been very different to communicate with them due to interference from the solar storm. Such a launch would have been “very provocative,” risking a Soviet counter-attack and all-out global war.

Crisis was averted, the study’s authors believe, because key information from NORAD’s Solar Forecasting Center reached the Air Force commanders in time to stop any military action. According to Delores Knipp, a space physicist at the University of Colorado in Boulder and the study’s lead author, the revelation about the solar storm and its impact on the missile detection system may have reached all the way up the chain of government, including then-President Lyndon B. Johnson.

“Had it not been for the fact that we had invested very early on in solar and geomagnetic storm observations and forecasting, the impact [of the storm] likely would have been much greater,” Knipp said in a statement. “This was a lesson learned in how important it is to be prepared.”

The predicted geomagnetic storm, which began about 40 hours after the solar bursts, wreaked havoc with U.S. radio communications for the next week. It was reportedly so powerful that the northern lights (aurora borealis), usually only visible in or near the Arctic Circle, could be seen as far south as New Mexico. According to Knipp and her colleagues, the event “ranks near the top in the record books” in terms of geomagnetic disturbances.

The top spot, incidentally, likely belongs to the Carrington Event of 1859, a solar superstorm that caused telegraph communications all over North America and Europe to fail and expanded the reach of the northern lights all the way to the Caribbean. A storm of a similar magnitude today would be devastating, according to experts, given our widespread dependence on GPS, satellite communications and other technologies. To ensure preparing from such an event, the NOAA recently launched a satellite called DSCVR, which monitors solar weather from an orbit nearly 1 million miles from Earth and reports data back to the agency’s Space Weather Prediction Center.