Star formation happens when part of a dust cloud begins to contract under its own gravitational force; as it collapses, the center becomes hotter and hotter until nuclear fusion begins in the core. Rotation can also interfere with gravitational collapse, as can magnetism.