Solid compounds can often be purified by a process known as
recrystallization.
To do this, the solid is dissolved in hot solvent, any
insoluble material is removed by filtration, then the solution is cooled
so that the sample crystallizes. Often small amounts of soluble impurities
stay in solution.