Marine biofilms are essential biological components that transform built structures into artificial reefs. Anthropogenic contaminants released into the marine environment, such as crude oil and chemical dispersant from an oil spill, may disrupt the diversity and function of these foundational biofilms. To investigate the response of marine biofilm microbiomes from distinct environments to contaminants and to address microbial functional response, biofilm metagenomes were analyzed from two short-term microcosms, one using surface seawater (SSW) and the other using deep seawater (DSW). Following exposure to crude oil, chemical dispersant, and dispersed oil, taxonomically distinct communities were observed between microcosms from different source water challenged with the same contaminants and higher Shannon diversity was observed in SSW metagenomes. Marinobacter, Colwellia, Marinomonas, and Pseudoalteromonas phylotypes contributed to driving community differences between SSW and DSW. SSW metagenomes were dominated by Rhodobacteraceae, known biofilm-formers, and DSW metagenomes had the highest abundance of Marinobacter, associated with hydrocarbon degradation and biofilm formation. Association of source water metadata with treatment groups revealed that control biofilms (no contaminant) harbor the highest percentage of significant KEGG orthologs (KOs). While 70% functional similarity was observed among all metagenomes from both experiments, functional differences between SSW and DSW metagenomes were driven primarily by membrane transport KOs, while functional similarities were attributed to translation and signaling and cellular process KOs. Oil and dispersant metagenomes were 90% similar to each other in their respective experiments, which provides evidence of functional redundancy in these microbiomes. When interrogating microbial functional redundancy, it is crucial to consider how composition and function evolve in tandem when assessing functional responses to changing environmental conditions within marine biofilms. This study may have implications for future oil spill mitigation strategies at the surface and at depth and also provides information about the microbiome functional responses of biofilms on steel structures in the marine built environment