This type of particle acceleration occurs due to Coronal Mass Ejections, which are large explosions of plasma from the Sun.