Supermassive stars that are 10 times way heavier than our sun are the ones who turn into a black hole after their death. Do not worry, our sun is not massive enough to turn into a black hole. When our sun reaches its peak and loses all its needed energy, it will eventually perish, swallowing all the planets in the process including Earth. Well, at least it didn’t turn into a black hole.