A magic pipe is a surreptitious change to a ship's oily water separator (OWS), or other waste-handing equipment, which allows waste liquids to be discharged in contravention of maritime pollution regulations. Such equipment alterations may allow hundreds of thousands of gallons of contaminated water to be discharged untreated, causing extensive pollution of marine waters.