Comblike, surfactant polymers for changing the surface properties of biomaterials and methods of preparation thereof are provided. Such surfactant polymers comprise a polymeric backbone of repeating monomeric units having functional groups for coupling with side chains, a plurality of hydrophobic side chains linked to the backbone via the functional groups, and a plurality of hydrophilic side chains linked to the backbone via the functional groups. Medical devices coated with the surfactant polymers are also provided. The surfactant polymers may be used to decrease the thrombogenic properties, encapsulation, and bacterial colonization of medical devices.