The particular nonionic surfactants useful in the process of the present invention are added to the contaminant-containing wastestream at standard operating temperatures and while the surfactants pass through the ultrafiltration membrane and are recovered in high concentrations in the permeate, the contaminants and other materials are held back by the filter in the retentate.