Certain molecules in the liquid gather together as they attempt to become stable. They do this in a uniform and repeating pattern that forms the crystal. In nature, crystals can form when liquid rock, called magma, cools. If it cools slowly, then crystals may form.