Stellar formation

As the surrounding gas reservoir is depleted or dispersed, what is a typical consequence for a protostar?