A star that is over five times the size of our Sun and in the main sequence phase is typically classified as a massive star. Once it exhausts the hydrogen fuel in its core, it will undergo several stages of evolution.
After the main sequence phase, the next phase for such a massive star is that it will evolve into a red supergiant. This happens as the star's core contracts under gravity, heating up and causing the outer layers to expand significantly. The star will then fuse heavier elements, starting with helium and progressing to carbon, oxygen, and beyond, depending on the mass of the star.
Eventually, when the core cannot sustain fusion of heavier elements and iron builds up, the star will end its life in a supernova explosion, leaving behind a neutron star or possibly a black hole, depending on its final mass.