This new heat supply causes the outer layers of the star to expand and cool, and the star becomes a red giant, or a red supergiant if it is very massive.