Solar flares are large eruptions of electromagnetic radiation that occur near sunspots, usually at the dividing line between areas of opposite magnetic fields. These sudden outbursts of electromagnetic energy travel at the speed of light, and can last from minutes to hours.