Stars make almost every natural element heavier than lithium
Stars build heavier elements inside themselves. When they lose material or explode, those elements are thrown back into space and can later become part of new stars and planets. Stars and their remains create almost all naturally occurring elements heavier than lithium.