How does gravity affect a star's life cycle?
I will give you one example by briefly describing how protostars are formed:
Stars are initially formed from clouds of dust and gas.
The force of gravity can make these clouds of dust and gas spiral in together to form protostars .
You can find the definition of a protostar here: