What is the primary function of a star's core?

Answer

To generate the energy required to defy its own gravity

The core acts as the furnace of the star, generating the tremendous energy necessary to counteract the overwhelming inward pull of the star's own gravity.

What is the primary function of a star's core?
Corestarmassive