Polymer synthesis via multicomponent reactions (MCRs) has opened avenues in polymer chemistry and led to the development of various types of functional polymers. Herein, we developed a strategy to prepare multifunctional polymers via the successive modification of dihydropyrimidin-2(1H)-thione (DHPMT), which can be generated by the tricomponent Biginelli reaction. Four hydrophobic polymers were efficiently prepared by using DHPMT derivatives. These polymers can be dip-coated onto the oxidized copper mesh to obtain superhydrophobic meshes because of the strong attractive forces between the DHPMT derivatives and Cu(II). The optimized mesh has self-cleaning properties and outstanding stability in various liquid environments; it has also been successfully applied for oil/water separation with high separation efficiency and good durability. These results demonstrate that successive modification of DHPMT is a promising method for fabricating multifunctional polymers, which may have applications in polymer chemistry and materials science.