A sunspot is made of plasma tied to tangled magnetic fields. These magnetic fields have energy but less mass density than the surrounding solar material so they are buoyant - they "float". Think about an ice cube in a pan of water... it floats to the top! The bigger the ice cube, the longer...