The automatic drainer is used to automatically remove condensate water from low parts of pipelines, oil-water separators, gas tanks and the bottom of various filters. It can be installed in places where manual sewage drainage is inconvenient, such as high places, low places, and narrow places. It can also prevent the artificial drainage from being forgotten and causing the compressed air to be re-contaminated by condensed water.