nebula -> protostar -> main sequence star
the nebula or cloud of gas is drawn together by gravity, where it heats up and increases in pressure due to the movement until it has reached high enough temperatures and pressures that nuclear fusion can take place