Nanomaterials can be engineered to interact specifically with contaminants at the molecular level. For example, metallic nanoparticles like silver and gold have antimicrobial properties, making them effective against biological contaminants. Carbon-based materials like graphene and carbon nanotubes can adsorb organic pollutants due to their large surface areas and porous structures.