A facile and efficient strategy for constructing anti-oil-fouling zwitterionic coatings on membranes is developed. The resultant membrane exhibits excellent anti-oil-fouling ability even in a dry state, and has a high efficiency for emulsion separation with a high flux of 5800 L m-2 h-1 bar-1 and an oil rejection of up to 99.6%.