A protostar is the earliest stage of a star's life cycle. It forms from a collapsing cloud of gas and dust within a molecular cloud. As the material contracts under gravity, it heats up and begins to glow. The protostar continues to accumulate mass from its surroundings until it reaches a critical density and temperature where nuclear fusion can commence.