The action of forming crystals, or a crystalline structure, through a purification process which takes place in many substances while cooling from a state of fusion or solution.