Removing solids and contaminants from used water so it can be returned to the mud system or discharged.