Stars are born out of collapsing pockets in enormous clouds of gas and dust, rotating as they shrink down under the pull of gravity. As a star grows in size, more material rains down toward it from the cloud, and the rotation flattens this material out into a turbulent disk.