Where are elements heavier than iron, such as gold and uranium, primarily forged?

Answer

Within the violence of the supernova explosion or during neutron star mergers.

While stable stars create lighter elements, the intense conditions during a supernova explosion or subsequent mergers are necessary to synthesize elements heavier than iron through nucleosynthesis.

Where are elements heavier than iron, such as gold and uranium, primarily forged?
starsupernovaneutron starblack holeremnant