Just before midnight on Sunday, a spacecraft will depart from Cape Canaveral, Florida, on a mission to the sun. Known as Solar Orbiter, this spacecraft will spend the next seven years dipping in and out of the extremely inhospitable environment around the sun. In the process, it will provide us with our first glimpse of the sun’s poles, which will be critical to understanding its topsy-turvy magnetic field. It will also help uncover the origin of violent solar storms that send plasma hurtling toward Earth, where it can knock out satellites and disrupt our power grids.

The Solar Orbiter mission is spearheaded by the European Space Agency and has been almost two decades in the making. It complements NASA’s Parker Solar Probe, launched in 2018, which will pass closer to the sun than any spacecraft in history. Only a year into its mission, Parker is providing scientists with four times more data about the solar environment than expected, says Nour Raouafi, a heliophysicist at Johns Hopkins University Applied Physics Laboratory and Parker project scientist. “We are venturing into regions of space that we never explored before,” says Raouafi. “Every observation is a potential discovery.”

Solar Orbiter will augment Parker’s vast trove of data with an array of 10 instruments, which include six that can directly image the sun. This is a luxury unavailable to Parker, which passes too close to the sun to directly image it without instantly frying a camera’s sensors. But Parker and Solar Orbiter are both equipped with suites of instruments to study the environment around the sun, such as its magnetic field, its plasma ejections, and the irregular bursts of high-energy particles from the sun’s atmosphere, or corona.

Compared to Parker, Solar Orbiter will be keeping its distance from the sun, never venturing closer than about 26 million miles. This is just inside Mercury’s orbit, a hellish region of the solar system where the spacecraft will experience temperatures above 900 degrees Fahrenheit while being assaulted by high-energy particles belched out by the sun.

Solar Orbiter’s radiation-hardened instruments will be protected from the sweltering heat by a shield covered with doors that periodically open to allow the spacecraft’s instruments to image the sun. About half the size of an average parking space, the Solar Orbiter’s heat shield is a mix of modern and ancient technology. Its outermost layer is a strip of titanium just a fraction of a millimeter thick and coated on the sun-facing side with charred animal bone. This is the same stuff used by prehistoric humans to paint cave walls, but its properties also make it great for radiating heat away from a spacecraft.

Daniel Verscharen, an instrument scientist for Solar Orbiter, says he is particularly interested in what the craft will reveal about the solar wind, the plasma that is continuously flowing away from the sun’s corona. The particles in this plasma can reach speeds of more than 1 million miles an hour, but scientists aren’t sure how the solar atmosphere accelerates them to these high speeds. Solar wind is a constant aspect of space weather, somewhat like the air temperature on Earth. Sometimes the solar wind is strong, sometimes it’s weak, but it’s always there in the background.

And just like the Earth hosts the occasional extreme weather event, so does the sun. Known as coronal mass ejections, these solar storms can dump more than a billion tons of plasma into space at speeds that make the solar wind seem slow. This wave of sun stuff carries its own magnetic field along with it—and if it happens to pass over the Earth, the effect is like a mallet hitting a gong. When the plasma wave reaches Earth, it ripples across our own magnetic field in what is known as a geomagnetic storm.

Earth’s atmosphere and magnetosphere defuse the high-energy solar particles and protect us all from getting cancer every time the sun spits plasma. And as the current produced by the colliding magnetic fields moves through the atmosphere, it creates stunning auroras whose blue-green light shimmers across Earth’s poles. If the coronal mass ejection is powerful enough, it can produce electric currents on the ground that overwhelm the power grid. Geomagnetic storms can also wreak havoc on Earth’s GPS satellites by heating up the atmosphere, which produces drag and causes the satellites to move out of their programmed orbits.

While coronal mass ejections can cause plenty of problems on Earth, they’re also of great concern to space agencies hoping to send astronauts to the moon or Mars, where they won’t be protected by a strong magnetic field. Being hit by one of the sun’s plasma waves could expose them to radiation levels equivalent to getting 300,000 chest x-rays at once—well over the lethal radiation dose.

“We hope that all this information we get from the sun will help us understand the effects of the its activity on the Earth and allow us to protect ourselves a bit better from what are currently quite unpredictable events,” says Jayne Lefort, Solar Orbiter science operations lead at the European Space Agency.

The sun has been an object of mystery and awe throughout human history, but with the launch of Solar Orbiter, we’ll come a little closer to understanding it.

This story originally appeared on wired.com.