The ecology of hydrocarbon-degrading bacteria were investigated during five cruises in Xiamen Harbor. The results demonstrated that number of hydrocarbon-degrading bacteria were 2.1×102-7.5×106 cell/l and 1.7×102-1.5×106 cell/g dry and hetcrotrophic bacteria were 3.0×104-5.9×109 cell/l and 2.53×103-5.0×103 cell/g dry in seawater and sediment respectively. The isolated strains which can degrade the petroleum belong to fifteen genera. Most, strains can only degsade one kind of hydro-carbon or petroleum. The results showed that the population and the species-composition of hydro carbon-degrading microorganisms were positively correlated with existing level of oil pollution and with water temperature, but independent of total microbtat count.