Thermodynamic measurements (at 298 K) reveal that a crucial step in the extraction process of the key antimalarial drug artemisinin by ionic liquids (ILs), namely, precipitation through the addition of water, is driven by artemisinin dehydration due to the differences in the water's interaction with the bulk ILs, rather than with the artemisinin itself.