Using acid base chemistry in the separation of substances can be a quite useful technique in organic chemistry. A basic extraction can be carried out by applying a hot solvent such as water to a dry substance like coffee. This will allow for the extraction of caffeine and flavor from the coffee beans. Acid base chemistry can be useful in separating neutral, basic, and acidic organic substances by controlling the pH of the aqueous layer. In acid base extraction a solvent such as ether is mixed with an aqueous solution of a different pH. This will aid in ionizing the intended compound and separate it from the mixture. Once the molecule is ionized it will precipitate out of the ether solvent and dissolve into the aqueous layer. The aqueous layer can then be removed and the pure substance can be obtained through crystallization.