Iron is primarily formed in stars through nuclear fusion, while elements heavier than iron are produced during supernova events, where extreme conditions allow for their synthesis. The binding energy of iron makes it the endpoint for self-sustaining fusion reactions in stars, meaning that heavier elements require additional energy input to form. Observations of stellar spectra provide evidence for the composition of stars, confirming that they contain heavier elements, which are produced via processes like the s-process and r-process during supernovae. Although the exact mechanisms and locations of heavy element formation are still being studied, current theories and simulations provide a solid framework for understanding these processes. Overall, while some mysteries remain, significant progress has been made in explaining how elements heavier than iron are formed in the universe.