Solid phase extraction (SPE) is a sample preparation technique that selectively enriches analytes from a sample matrix. It involves passing a sample through a cartridge containing a solid stationary phase. Analytes selectively bind to the phase based on properties like polarity while interfering matrix components are removed. Bound analytes can then be eluted and analyzed. SPE offers advantages over liquid-liquid extraction like higher selectivity and cleaner extracts. It has various applications including impurity profiling, environmental analysis, food chemistry, and biological analysis. Solid phase microextraction (SPME) is a related technique that extracts analytes directly from vapors using a coated fiber for analysis by gas chromatography.