Stars fuse hydrogen until it gets low in supply. Then they start fusing helium into various elements mostly up to up to oxygen and asome selected heavier elements. However the radiation pressure of these reactions is very much lower than the hydrogen reaction and cannot resist the gravitation.
Most of elements heavier than oxygen form when lighter elements are utterly crushed together as the gravitational implosion bottoms out and the shock wave bounces out into a supernova.
This page has a good description.
http://www.astrophysi...ics/stars/Fusion.html