The occurrence of foams at oceans’ surfaces is patchy and generally short-lived. However, a detailed understanding of bacterial communities inhabiting foams is lacking. In this study, we investigate if marine foams differ from the sea-surface microlayer (SML), a <1 mm thick layer at the air-sea interface. The comparison of marine foams, SML and underlying water collected from the North Sea and Timor Sea showed that foams were often characterized by highest abundance of small phototrophic and prokaryotic cells as well as highest concentrations of surface-active substances (SAS). Amplicon sequencing based on 16S rRNA revealed a comparable bacterial community in SML and foam. DNA and rRNA based sequence data suggest that Pseudoalteromonas, a typical member of the SML, was highly active and thus might enhance foam formation and stability by producing SAS. Although foams contained some specific taxa, our study supports the hypothesis that foam represents a compressed version of the SML. Foam is characterized by increased cell numbers, high SAS concentration, and a significant fraction of overlapping bacteria with SML. Due to the compressed nature of foam and SML compared to the underlying water, bacteria thriving in both surface phenomena have likely implications for biogeochemical cycling and air-sea exchange processes.One-sentence summaryWhile foams at the oceans’ surface have a unique bacterial community signature, they represent a compressed version of the sea-surface microlayer with typical bacterial inhabitants.