Biopiles work by optimizing conditions for microbial growth and activity. This includes controlling moisture content, temperature, pH, and nutrient levels. Oxygen is often supplied through forced aeration systems, such as blowers or vacuum extraction. The contaminated soil is periodically turned to ensure uniform treatment and oxygen distribution.