Surfaces obtained by modifying poly(N,N'-dimethylaminoethyl methacrylate) (PDMAEMA) on rough silicon substrates are highly hydrophilic at low pH and highly hydrophobic at high pH; such surfaces effectively supplement the research on the wettability of solid surfaces based on the pH-responsive polymers.