What process does the sun use to procude energy from the matter in its core?

The sun in its current phase produces energy through the fusion of hydrogen atoms into helium. As the sun ages, it will eventually start fusing helium into heavier elements to produce energy.