What was the earliest stage in the life of a star?

As gas collapses, it heats up. Eventually it gets hot enough to shine. This stage the star is known as a protosun, and represent the first step in a nascent star. Smaller stars might shine about a million years before nuclear ignition (fusion) begins, with is the birth of a true star.