The sun is composed primarly of hydrogen. Its center is the seat of intense nuclear reactions. It ejects particle clouds from its surface .
Some are trapped by the magnetic field which creates the prominences.
Here, an animation of the solar prominences
Credit : NASA .