The invention provides compositions comprising a plurality of polymer layers for preventing or inhibiting microbial infections. Specifically, the invention provides a combination of a cationic polymer layer that resists adhesion of a microbe to its surface and an anionic polymer layer that releases a cationic anti-microbial agent in response to a change in pH or electrostatic balance.