A universal strategy is developed to construct metal-organic framework (MOF)-based superhydrophobic/superoleophilic materials by the reaction of activated MOFs and octadecylamine. In particular, S-MIL-101(Cr) composite can efficiently separate chloroform, toluene, petroleum ether, and n-hexane from water with excellent oil-water separation performance, with potential application in the environmental field.