When GHB is dissolved in water, the water molecules surround the GHB molecules and form hydrogen bonds with them. This prevents the GHB molecules from moving around freely, and they start to form crystals. The crystals continue to grow until all of the GHB molecules have been crystallized.
The process of recrystallization can be used to purify GHB. Impurities in the GHB will not be able to form crystals, so they will be left behind in the solution. The crystals can then be washed with water to remove any remaining impurities.
Recrystallization is a common technique used to purify organic compounds. It is a simple and effective way to remove impurities and obtain a pure product.