This marks the end of the Sun 's main sequence lifetime , and thereafter it will be into a red giant . This marks the end of the Sun 's main sequence lifetime , and thereafter it will evolve into a red giant .