What makes a surface attract or repel water that comes in contact with it is usually determined by the chemical coating on the surface. Teflon is an example of a chemical coating to which water adheres only slightly. Those waxes that are put on wood and metal surfaces that cause water to bead up and flow off rather than adhere to the surface are other examples of hydrophobic techniques.
But scientists at the University of Rochester have developed a technique of using etching patterns on a micro- or nanometer scale that can produce either super-hydrophobic or super-hydrophilic surfaces. The effects shown in the video are quite dramatic.
(Via Mark Frauenfelder.)